ci: compile also CH552 firmware, production test gateware; reorder

This commit is contained in:
Matthew Mets 2023-02-13 15:57:34 +00:00 committed by Daniel Lublin
parent 5e43450a8a
commit 0ce6808ada
No known key found for this signature in database
GPG Key ID: 75BD0FEB8D3E7830

View File

@ -26,22 +26,34 @@ jobs:
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
# make firmwares first to fail sooner
- name: make
working-directory: hw/application_fpga
run: make firmware.bin testfw.bin all
- name: compile ch552 firmware
working-directory: hw/boards/mta1-usb-v1/ch552_fw
run: make
# this should to fail on errors, but not on warnings (using -Wno-fatal)
- name: lint using verilator
working-directory: hw/application_fpga
run: make lint
- name: make production test gateware
working-directory: hw/production_test/application_fpga_test_gateware
run: make
- name: check fmt of c code
- name: compile firmware and testfw
working-directory: hw/application_fpga
run: make firmware.bin testfw.bin
- name: check fmt of our firmware C code
working-directory: hw/application_fpga
run: |
make -C fw/tk1 checkfmt
make -C fw/testfw checkfmt
# this should to fail on errors, but not on warnings (using -Wno-fatal)
- name: lint verilog using verilator
working-directory: hw/application_fpga
run: make lint
# doing this last as it takes long time
- name: make application FPGA gateware
working-directory: hw/application_fpga
run: make all
# TODO? first deal with hw/boards/ and hw/production_test/
# - name: check for SPDX tags
# run: ./LICENSES/spdx-ensure