From 0031317d26d3ffc02005c4a71acfa38787d50fc4 Mon Sep 17 00:00:00 2001 From: Peter Bridgman Date: Sun, 2 Mar 2025 20:37:50 +0000 Subject: [PATCH 1/2] TF-2580: ci: Upgrade to ubuntu-24.04 This commit upgrades the Github Actions runner used for CI jobs to use image `ubuntu-24.04` instead of `ubuntu-20.04`, as the latter image's retirement is imminent. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eed2aaa..83243bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ on: jobs: BuildLinux: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v3 From 9e76fd775f700342368f4149d25b41f7b01ae43f Mon Sep 17 00:00:00 2001 From: Peter Bridgman Date: Sun, 2 Mar 2025 21:01:05 +0000 Subject: [PATCH 2/2] Fix apparmor interference --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83243bd..b8ac850 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,12 @@ jobs: - name: Test build module (linux-x64) run: npm i && file bin/linux-x64/capnp.node + # See https://github.com/electron/electron/issues/42510 + - name: Configure electron SUID sandbox helper + run: | + sudo chown root: ./node_modules/electron/dist/chrome-sandbox + sudo chmod 4755 ./node_modules/electron/dist/chrome-sandbox + - name: Run tests run: npm test