Skip to content

Commit 81712ff

Browse files
committed
ci: disable KVM and sandbox inside act containers
1 parent ec86e43 commit 81712ff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ jobs:
7676
build:
7777
runs-on: ubuntu-latest
7878

79+
env:
80+
NIX_EXTRA_CONFIG_ACT: |
81+
sandbox = false
82+
filter-syscalls = false
83+
7984
strategy:
8085
fail-fast: false
8186
matrix:
@@ -90,6 +95,10 @@ jobs:
9095
uses: cachix/install-nix-action@v31 # 2025-05-27, from https://github.com/cachix/install-nix-action/tags
9196
with:
9297
nix_path: nixpkgs=channel:nixos-25.05 # latest release
98+
# Act executes inside an unprivileged container (Docker or Podman),
99+
# so KVM support isn't available.
100+
enable_kvm: "${{ github.actor != 'nektos/act' }}"
101+
extra_nix_config: ${{ github.actor == 'nektos/act' && env.NIX_EXTRA_CONFIG_ACT || '' }}
93102

94103
- name: Run CI script
95104
env:

0 commit comments

Comments
 (0)