aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-12-16 15:31:01 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-12-16 16:26:19 +0100
commitb5c0290803508c0dc996a9bed70f5fa9ceb93c44 (patch)
tree3f92a3f93e2f949a2fa0b86673d8855d07817c0a
parent6c975515c5608b500ac96fae598f0b5a48e03ddb (diff)
downloadrneovim-b5c0290803508c0dc996a9bed70f5fa9ceb93c44.tar.gz
rneovim-b5c0290803508c0dc996a9bed70f5fa9ceb93c44.tar.bz2
rneovim-b5c0290803508c0dc996a9bed70f5fa9ceb93c44.zip
ci(build.yml): disable security restriction
A new security restriction in Ubuntu 24.04 prevents users from using `unshare`, so we need to disable it in order for the test to work properly.
-rw-r--r--.github/workflows/build.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ab313729b9..3211216c85 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -89,7 +89,9 @@ jobs:
for d in *; do (cd "$d"; rm -rf ./autom4te.cache; make clean || true; make distclean || true); done
- name: Re-build bundled dependencies with no network access
- run: unshare --map-root-user --net make deps DEPS_CMAKE_FLAGS=-DUSE_EXISTING_SRC_DIR=ON
+ run: |
+ sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
+ unshare --map-root-user --net make deps DEPS_CMAKE_FLAGS=-DUSE_EXISTING_SRC_DIR=ON
- name: Build
run: make CMAKE_FLAGS="-D CI_BUILD=ON"