Skip to content

Commit

Permalink
ci: use container images of Ubuntu 24.04 as github actions makes job …
Browse files Browse the repository at this point in the history
…wait indefinitely with image: ubuntu:24.04

Revert "ci: use Ubuntu 24.04 instead of Ubuntu 23.10"
  • Loading branch information
varqox committed May 13, 2024
1 parent 1c86f18 commit 678c6ef
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ jobs:
- run: su tester -c 'meson test -C release-build/ --print-errorlogs'

ubuntu-24:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
container:
image: ubuntu:24.04
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: apt-get update
- run: env DEBIAN_FRONTEND=noninteractive apt-get install -y git
- uses: actions/checkout@v4
Expand Down Expand Up @@ -111,9 +116,14 @@ jobs:
- run: su tester -c 'meson test -C release-build/ --print-errorlogs'

ubuntu-24-with-sanitizers:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
container:
image: ubuntu:24.04
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: apt-get update
- run: env DEBIAN_FRONTEND=noninteractive apt-get install -y git
- uses: actions/checkout@v4
Expand Down

0 comments on commit 678c6ef

Please sign in to comment.