add v3 version (stm32g0) (#21) #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dronecan | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
stm32f103: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: ./scripts/tools/install_for_ubuntu.sh --yes | |
- name: Build DroneCAN binary | |
run: make dronecan | |
- name: Upload .bin file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cyphal_firmware.bin | |
path: build/obj/example.bin | |
- name: Upload .elf file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cyphal_firmware.elf | |
path: build/obj/example.elf | |
sitl: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: ./scripts/tools/install_for_ubuntu.sh --yes | |
- name: Build SITL DroneCAN | |
run: make sitl_dronecan | |
- name: Run SITL for 5 seconds | |
run: timeout 5s make run || res=$?; if [[ $res -ne 124 && $res -ne 0 ]]; then exit $res; fi |