Skip to content

Commit

Permalink
.github: Change to colcon workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Nov 16, 2023
1 parent bf4406b commit 3d13ba0
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/test_dds.yml → .github/workflows/colcon.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test dds
name: colcon build/test

on:
push:
Expand Down Expand Up @@ -142,14 +142,8 @@ jobs:
runs-on: ubuntu-22.04
container:
image: ardupilot/ardupilot-dev-ros:latest
options: --user 1001
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:
config: [
sitl,
stm32h7
]
steps:
# git checkout the PR
- uses: actions/checkout@v4
Expand All @@ -166,21 +160,13 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{ matrix.config }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
restore-keys: ${{github.workflow}}-ccache-${{ matrix.config }}- # restore ccache from either previous build on this branch or on master
key: ${{github.workflow}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
restore-keys: ${{github.workflow}}-ccache- # restore ccache from either previous build on this branch or on master
- name: setup ccache
run: |
. src/ardupilot/.github/workflows/ccache.env
# - name: test ${{matrix.config}}
# env:
# CI_BUILD_TARGET: dds-${{matrix.config}}
# shell: 'script -q -e -c "bash {0}"'
# run: |
# git config --global --add safe.directory ${GITHUB_WORKSPACE}
# PATH="/github/home/.local/bin:$PATH"
# Tools/scripts/build_ci.sh
# https://ardupilot.org/dev/docs/ros2.html#installation-ubuntu
- name: Build with colcon
- name: Build and test with colcon
env:
DEBIAN_FRONTEND: noninteractive
TZ: Europe/Paris
Expand Down Expand Up @@ -210,11 +196,4 @@ jobs:
colcon build --packages-up-to ardupilot_dds_tests --cmake-args -DBUILD_TESTING=ON
colcon test --packages-select ardupilot_dds_tests
colcon test-result --all --verbose
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v3
if: failure()
with:
name: fail-${{matrix.config}}
path: /tmp/buildlogs
retention-days: 14

0 comments on commit 3d13ba0

Please sign in to comment.