diff --git a/.github/workflows/test_regression.yml b/.github/workflows/test_regression.yml index c827925..24c06be 100644 --- a/.github/workflows/test_regression.yml +++ b/.github/workflows/test_regression.yml @@ -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 diff --git a/tests/test_regression.sh b/tests/test_regression.sh index 2087fca..26ae625 100755 --- a/tests/test_regression.sh +++ b/tests/test_regression.sh @@ -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