Skip to content

Commit 2bf9803

Browse files
committed
switch to namespace runners
1 parent 3df9337 commit 2bf9803

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
build:
55
strategy:
66
matrix:
7-
os: [ubuntu-latest]
7+
os: [namespace-profile-mitchellh-sm]
88

99
target: [
1010
aarch64-linux-gnu,
@@ -23,10 +23,20 @@ jobs:
2323
]
2424
runs-on: ${{ matrix.os }}
2525
needs: [test-x86_64-linux, test-x86_64-windows]
26+
env:
27+
ZIG_LOCAL_CACHE_DIR: /zig/local-cache
28+
ZIG_GLOBAL_CACHE_DIR: /zig/global-cache
2629
steps:
2730
- name: Checkout code
2831
uses: actions/checkout@v4
2932

33+
- name: Setup Cache
34+
uses: namespacelabs/[email protected]
35+
with:
36+
path: |
37+
/nix
38+
/zig
39+
3040
# Install Nix and use that to run our tests so our environment matches exactly.
3141
- uses: cachix/install-nix-action@v31
3242
with:
@@ -43,13 +53,22 @@ jobs:
4353
test-x86_64-linux:
4454
strategy:
4555
matrix:
46-
os: [ubuntu-latest]
56+
os: [namespace-profile-mitchellh-sm]
4757
runs-on: ${{ matrix.os }}
58+
env:
59+
ZIG_LOCAL_CACHE_DIR: /zig/local-cache
60+
ZIG_GLOBAL_CACHE_DIR: /zig/global-cache
4861
steps:
4962
- name: Checkout code
5063
uses: actions/checkout@v4
5164

52-
# Install Nix and use that to run our tests so our environment matches exactly.
65+
- name: Setup Cache
66+
uses: namespacelabs/[email protected]
67+
with:
68+
path: |
69+
/nix
70+
/zig
71+
5372
- uses: cachix/install-nix-action@v31
5473
with:
5574
nix_path: nixpkgs=channel:nixos-unstable

0 commit comments

Comments
 (0)