Browse Source

.github: run test in privilege container to allow PTRACE

zr-v5.1
Pierre Kancir 4 years ago committed by Peter Barker
parent
commit
617ee37392
  1. 8
      .github/workflows/test_sitl_copter.yml
  2. 4
      .github/workflows/test_sitl_plane.yml
  3. 4
      .github/workflows/test_sitl_rover.yml
  4. 4
      .github/workflows/test_sitl_sub.yml
  5. 4
      .github/workflows/test_sitl_tracker.yml

8
.github/workflows/test_sitl_copter.yml

@ -58,7 +58,9 @@ jobs: @@ -58,7 +58,9 @@ jobs:
autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:
@ -124,7 +126,9 @@ jobs: @@ -124,7 +126,9 @@ jobs:
build-gcc-heli:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
steps:
# git checkout the PR
- uses: actions/checkout@v2

4
.github/workflows/test_sitl_plane.yml

@ -58,7 +58,9 @@ jobs: @@ -58,7 +58,9 @@ jobs:
autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:

4
.github/workflows/test_sitl_rover.yml

@ -58,7 +58,9 @@ jobs: @@ -58,7 +58,9 @@ jobs:
autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:

4
.github/workflows/test_sitl_sub.yml

@ -58,7 +58,9 @@ jobs: @@ -58,7 +58,9 @@ jobs:
autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:

4
.github/workflows/test_sitl_tracker.yml

@ -58,7 +58,9 @@ jobs: @@ -58,7 +58,9 @@ jobs:
autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:

Loading…
Cancel
Save