ci: use ubuntu-latest, disable apparmor

This commit is contained in:
Ryan
2025-11-01 14:25:53 +01:00
committed by GitHub
parent cda792beb6
commit 8f105f71a9
+8 -2
View File
@@ -38,7 +38,7 @@ jobs:
build-base: build-base:
name: Build base ${{ matrix.TAG }} name: Build base ${{ matrix.TAG }}
if: "!contains(github.event.pull_request.body, '[skip build-base]')" if: "!contains(github.event.pull_request.body, '[skip build-base]')"
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
env: env:
PLATFORMS: ${{ matrix.PLATFORMS }} PLATFORMS: ${{ matrix.PLATFORMS }}
strategy: strategy:
@@ -52,6 +52,9 @@ jobs:
- 22.04 - 22.04
- 20.04 - 20.04
steps: steps:
- name: Disable apparmor restrictions
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: '>=1.21.0' go-version: '>=1.21.0'
@@ -225,7 +228,7 @@ jobs:
build-flavours: build-flavours:
name: Build ${{ matrix.TYPE }}:${{ matrix.TAG }} name: Build ${{ matrix.TYPE }}:${{ matrix.TAG }}
if: (!cancelled() && !failure()) if: (!cancelled() && !failure())
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
needs: [build-base] needs: [build-base]
env: env:
PLATFORMS: ${{ matrix.PLATFORMS }} PLATFORMS: ${{ matrix.PLATFORMS }}
@@ -269,6 +272,9 @@ jobs:
- TAG: 20.04 - TAG: 20.04
TYPE: go TYPE: go
steps: steps:
- name: Disable apparmor restrictions
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: '>=1.21.0' go-version: '>=1.21.0'