File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,11 @@ jobs:
135135 with :
136136 extra_nix_config : sandbox = true
137137
138+ - uses : cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
139+ with :
140+ name : nodejs
141+ authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
142+
138143 - name : Configure sccache
139144 uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
140145 with :
@@ -144,6 +149,12 @@ jobs:
144149 core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
145150 core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
146151
152+ - name : Load shell.nix
153+ if : github.event_name == 'workflow_dispatch'
154+ run : |
155+ curl -fsSLo shell.nix "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/shell.nix"
156+ curl -fsSLo tools/nix/pkgs.nix "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/tools/nix/pkgs.nix"
157+
147158 - name : Load shell.nix
148159 if : github.event_name != 'workflow_dispatch'
149160 run : |
@@ -172,6 +183,8 @@ jobs:
172183 run : |
173184 mv out/Release/node base_node
174185 git reset FETCH_HEAD --hard
186+ curl -fsSLo shell.nix "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/shell.nix"
187+ curl -fsSLo tools/nix/pkgs.nix "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/tools/nix/pkgs.nix"
175188 nix-shell \
176189 -I nixpkgs=./tools/nix/pkgs.nix \
177190 --pure \
You can’t perform that action at this time.
0 commit comments