Skip to content

Commit

Permalink
archive generated headers in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jun 2, 2023
1 parent 88608bd commit dad6cfb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test_regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ jobs:
shell: bash
run: |
tests/test_regression.sh
- name: Archive generated headers
uses: actions/upload-artifact@v3
with:
name: dsdl_generated
path: |
dsdl_generated/include
dsdl_generated/src
retention-days: 90
10 changes: 5 additions & 5 deletions tests/test_regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ set -x
# test compiler on linux
python3 -m pip install -U empy pexpect dronecan

cd ..

git clone https://github.com/DroneCAN/dronecan_dsdlc
git clone https://github.com/DroneCAN/libcanard
pushd ..
[ -d dronecan_dsdlc ] || git clone https://github.com/DroneCAN/dronecan_dsdlc
[ -d libcanard ] || git clone https://github.com/DroneCAN/libcanard
popd

echo "Testing generation with regression testing"
python3 dronecan_dsdlc/dronecan_dsdlc.py --output dsdl_generated DSDL/dronecan DSDL/uavcan DSDL/com DSDL/ardupilot --run-test
python3 ../dronecan_dsdlc/dronecan_dsdlc.py --output dsdl_generated dronecan uavcan com ardupilot --run-test

0 comments on commit dad6cfb

Please sign in to comment.