Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomarevDA committed Sep 29, 2024
1 parent 749374d commit 8c22ad0
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 109 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/cyphal.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/cyphal_sitl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: cyphal_sitl
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
sitl:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest
sudo apt-get install -y gcc-arm-none-eabi linux-modules-extra-$(uname -r)
- run: make sitl_cyphal
- run: |
export REG_DATA_TYPE_PATH="$PWD/Libs/Cyphal/Libs/public_regulated_data_types/uavcan $PWD/Libs/Cyphal/Libs/public_regulated_data_types/reg"
make run &
cd scripts/tools/cyphal
source init.sh -i slcan0 -n 127 -v
./specification_checker.py
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: deploy
on:
push:
branches:
Expand All @@ -7,12 +7,14 @@ on:
branches:
- '*'
jobs:
stm32f103:
deploy:
strategy:
matrix:
include:
- os: ubuntu-22.04
target: all
- os: windows-latest
target: dronecan_v2
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
Expand All @@ -35,4 +37,5 @@ jobs:
run: make ${{ matrix.target }}

- name: Deploy binaries to Telegram
if: matrix.os == 'ubuntu-22.04' && matrix.target == 'all' && github.ref == 'refs/heads/main' && github.repository == 'RaccoonlabDev/mini_v2_node'
run: ./scripts/deploy_release_to_telegram.py --bot-token ${{ secrets.TELEGRAM_BOT_TOKEN }} --chat-id ${{ secrets.TELEGRAM_CHAT_ID }}
38 changes: 0 additions & 38 deletions .github/workflows/dronecan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,6 @@ on:
branches:
- '*'
jobs:
stm32f103:
strategy:
matrix:
include:
- os: ubuntu-22.04
platform: v2
- os: ubuntu-22.04
platform: v3
- os: windows-latest
platform: v2
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Install dependencies
run: |
python -m pip install -r requirements.txt
if [ "${{ runner.os }}" == "Linux" ]; then
sudo apt-get install -y gcc-arm-none-eabi
elif [ "${{ runner.os }}" == "Windows" ]; then
choco install -y gcc-arm-embedded make cmake
fi
shell: bash

- name: Build DroneCAN binary
run: make dronecan_${{ matrix.platform }}

- name: Upload .bin file
if: matrix.os == 'ubuntu-22.04' && matrix.platform == 'v2'
uses: actions/upload-artifact@v3
with:
name: dronecan_firmware.bin
path: build/dronecan_${{ matrix.platform }}/obj/example.bin

sitl:
runs-on: ubuntu-22.04
timeout-minutes: 10
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
- name: Run build-wrapper
run: |
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make cyphal
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make v3
- name: Run sonar-scanner
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: sonar-scanner
run: sonar-scanner
4 changes: 4 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ sonar.sources=Src
sonar.cfamily.build-wrapper-output=bw-output
sonar.host.url=https://sonarcloud.io
sonar.cfamily.gcov.reportsPath=build

sonar.issue.ignore.multicriteria=e1
sonar.issue.ignore.multicriteria.e1.ruleKey=cpp:S5780
sonar.issue.ignore.multicriteria.e1.resourceKey=**

0 comments on commit 8c22ad0

Please sign in to comment.