Skip to content

fix a few sonarcloud issues #112

fix a few sonarcloud issues

fix a few sonarcloud issues #112

Workflow file for this run

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