build all objects

This commit is contained in:
2025-08-28 23:05:30 -06:00
parent 43e2e897f7
commit b8568acb26
3 changed files with 9 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ jobs:
# test: ${{ fromJson(needs.enumerate-tests.outputs.matrix) }} # test: ${{ fromJson(needs.enumerate-tests.outputs.matrix) }}
test: test:
- test_basic - test_basic
- test_c
max-parallel: 1 max-parallel: 1
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -44,9 +45,8 @@ jobs:
entrypoint: sh entrypoint: sh
args: | args: |
-c "\ -c "\
riscv64-unknown-elf-gcc --version && \
cd tests/${{ matrix.test }} && \ cd tests/${{ matrix.test }} && \
make test.o && \ make obj && \
riscv64-unknown-elf-ld -melf32lriscv -T tb.ld test.o -o tb.elf && \ riscv64-unknown-elf-ld -melf32lriscv -T tb.ld test.o -o tb.elf && \
riscv64-unknown-elf-objcopy --target=verilog tb.elf tb.hex && \ riscv64-unknown-elf-objcopy --target=verilog tb.elf tb.hex && \
echo "done" \ echo "done" \

View File

@@ -57,5 +57,7 @@ verify: $(LOGS)
clean: clean:
rm -rf *.vcd *.log *.out *.hex rm -rf *.vcd *.log *.out *.hex
obj: $(OBJ)
.SECONDARY: %.log %.vcd .SECONDARY: %.log %.vcd
.PHONY: all clean verify .PHONY: all clean verify obj

View File

@@ -62,6 +62,8 @@ verify: $(LOGS)
clean: clean:
rm -rf *.vcd *.log *.out *.hex rm -rf *.vcd *.log *.out *.hex
.SECONDARY: %.log %.vcd obj: $(OBJ)
.PHONY: all clean verify
.SECONDARY: %.log %.vcd
.PHONY: all clean verify obj