Skip to content

Commit fc33e17

Browse files
committed
tools: cache nix-shell
1 parent 2fb3c7e commit fc33e17

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test-shared.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,17 @@ jobs:
150150
mkdir tools
151151
mv "$TAR_DIR"/tools/nix tools/.
152152
153+
- name: Cache nix-shell
154+
run: |
155+
nix-store --query --references $(
156+
nix-instantiate \
157+
-I nixpkgs=./tools/nix/pkgs.nix \
158+
--arg ccache '(import <nixpkgs> {}).sccache' \
159+
--arg devTools '[]' \
160+
--arg benchmarkTools '[]' \
161+
shell.nix
162+
) | xargs nix-store --realise | xargs nix-store --query --requisites | cachix push mycache
163+
153164
- name: Build Node.js and run tests
154165
run: |
155166
nix-shell \
@@ -164,3 +175,4 @@ jobs:
164175
--run '
165176
make -C "$TAR_DIR" run-ci -j4 V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9 --skip-tests=$CI_SKIP_TESTS"
166177
'
178+

0 commit comments

Comments
 (0)