mirror of https://github.com/Nonannet/copapy.git
updated ci script for improved debugging
This commit is contained in:
parent
2ca2df2a34
commit
1a8a738640
|
|
@ -17,11 +17,26 @@ jobs:
|
||||||
- name: Build object files
|
- name: Build object files
|
||||||
run: bash tools/crosscompile.sh
|
run: bash tools/crosscompile.sh
|
||||||
|
|
||||||
|
- name: Generate debug asm files
|
||||||
|
run: |
|
||||||
|
bash tools/inspect.sh
|
||||||
|
echo '<p>test.copapy.asm</p><pre>' >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo bin/test.copapy.asm >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo '</pre>' >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo '<p>stencils_x86_64_O3.asm</p><pre>' >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo bin/stencils_x86_64_O3.asm >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo '</pre>' >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: stencil-object-files
|
name: stencil-object-files
|
||||||
path: src/copapy/obj/*.o
|
path: src/copapy/obj/*.o
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: inspect-asm-files
|
||||||
|
path: bin/*.asm
|
||||||
|
|
||||||
build-ubuntu:
|
build-ubuntu:
|
||||||
needs: [build_stencils]
|
needs: [build_stencils]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ def test_compile():
|
||||||
il, variables = copapy.compile_to_instruction_list(out, copapy.generic_sdb)
|
il, variables = copapy.compile_to_instruction_list(out, copapy.generic_sdb)
|
||||||
|
|
||||||
# run program command
|
# run program command
|
||||||
#il.write_com(binwrite.Command.RUN_PROG)
|
il.write_com(binwrite.Command.RUN_PROG)
|
||||||
|
|
||||||
for net in ret:
|
for net in ret:
|
||||||
copapy.add_read_command(il, variables, net)
|
copapy.add_read_command(il, variables, net)
|
||||||
|
|
@ -72,8 +72,8 @@ def test_compile():
|
||||||
print(result)
|
print(result)
|
||||||
print('--')
|
print('--')
|
||||||
|
|
||||||
#assert 'Return value: 1' in result
|
assert 'Return value: 1' in result
|
||||||
assert 'END_COM' in result
|
#assert 'END_COM' in result
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,10 @@ SRC=bin/stencils.c
|
||||||
DEST=src/copapy/obj
|
DEST=src/copapy/obj
|
||||||
python tools/generate_stencils.py $SRC
|
python tools/generate_stencils.py $SRC
|
||||||
mkdir -p $DEST
|
mkdir -p $DEST
|
||||||
gcc -c $SRC -O0 -o $DEST/stencils_x86_64_O0.o
|
gcc --version
|
||||||
gcc -c $SRC -O1 -o $DEST/stencils_x86_64_O1.o
|
#gcc -c $SRC -O0 -o $DEST/stencils_x86_64_O0.o
|
||||||
gcc -c $SRC -O2 -o $DEST/stencils_x86_64_O2.o
|
#gcc -c $SRC -O1 -o $DEST/stencils_x86_64_O1.o
|
||||||
|
#gcc -c $SRC -O2 -o $DEST/stencils_x86_64_O2.o
|
||||||
gcc -c $SRC -O3 -o $DEST/stencils_x86_64_O3.o
|
gcc -c $SRC -O3 -o $DEST/stencils_x86_64_O3.o
|
||||||
|
|
||||||
mkdir bin -p
|
mkdir bin -p
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue