.github: run test in privilege container to allow PTRACE

This commit is contained in:
Pierre Kancir 2021-01-14 09:51:48 +01:00 committed by Peter Barker
parent f4e6d63a7c
commit 617ee37392
5 changed files with 18 additions and 6 deletions

View File

@ -58,7 +58,9 @@ jobs:
autotest: autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build 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 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: strategy:
fail-fast: false # don't cancel if a job from the matrix fails fail-fast: false # don't cancel if a job from the matrix fails
matrix: matrix:
@ -124,7 +126,9 @@ jobs:
build-gcc-heli: 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 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 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: steps:
# git checkout the PR # git checkout the PR
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -58,7 +58,9 @@ jobs:
autotest: autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build 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 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: strategy:
fail-fast: false # don't cancel if a job from the matrix fails fail-fast: false # don't cancel if a job from the matrix fails
matrix: matrix:

View File

@ -58,7 +58,9 @@ jobs:
autotest: autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build 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 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: strategy:
fail-fast: false # don't cancel if a job from the matrix fails fail-fast: false # don't cancel if a job from the matrix fails
matrix: matrix:

View File

@ -58,7 +58,9 @@ jobs:
autotest: autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build 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 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: strategy:
fail-fast: false # don't cancel if a job from the matrix fails fail-fast: false # don't cancel if a job from the matrix fails
matrix: matrix:

View File

@ -58,7 +58,9 @@ jobs:
autotest: autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build 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 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: strategy:
fail-fast: false # don't cancel if a job from the matrix fails fail-fast: false # don't cancel if a job from the matrix fails
matrix: matrix: