From 6240225db28c759d3977b3bd62896e7eb319479d Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sat, 26 Oct 2024 18:33:30 -0700 Subject: [PATCH] workaround for zig issue 21815 --- .gitea/workflows/zig-mach.yaml | 5 +++++ .gitea/workflows/zig-nightly.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.gitea/workflows/zig-mach.yaml b/.gitea/workflows/zig-mach.yaml index 292e393..e8ecb3d 100644 --- a/.gitea/workflows/zig-mach.yaml +++ b/.gitea/workflows/zig-mach.yaml @@ -10,6 +10,11 @@ env: PKG_PREFIX: nominated-zig jobs: build-zig-nominated-mach-latest: + container: + # We need CAP_SYS_PTRACE for stack traces due to a regression in 0.14.0 + # TODO: Remove this after https://github.com/ziglang/zig/issues/21815 is + # addressed + options: --cap-add CAP_SYS_PTRACE runs-on: ubuntu-latest # Need to use the default container with node and all that, so we can # use JS-based actions like actions/checkout@v3... diff --git a/.gitea/workflows/zig-nightly.yaml b/.gitea/workflows/zig-nightly.yaml index 71bf5b5..98605e6 100644 --- a/.gitea/workflows/zig-nightly.yaml +++ b/.gitea/workflows/zig-nightly.yaml @@ -10,6 +10,11 @@ env: PKG_PREFIX: nightly-zig jobs: build-zig-nightly: + container: + # We need CAP_SYS_PTRACE for stack traces due to a regression in 0.14.0 + # TODO: Remove this after https://github.com/ziglang/zig/issues/21815 is + # addressed + options: --cap-add CAP_SYS_PTRACE runs-on: ubuntu-latest # Need to use the default container with node and all that, so we can # use JS-based actions like actions/checkout@v3...