Skip to content

Commit 0ca793a

Browse files
committed
ci: fetch and serve installer in nix-master test
1 parent 63fc608 commit 0ca793a

File tree

1 file changed

+25
-14
lines changed

1 file changed

+25
-14
lines changed

.github/workflows/test.yml

+25-14
Original file line numberDiff line numberDiff line change
@@ -111,22 +111,33 @@ jobs:
111111
nix-master:
112112
strategy:
113113
matrix:
114-
os: [ubuntu-latest, macos-13]
114+
include:
115+
- os: ubuntu-latest
116+
system: x86_64-linux
117+
- os: macos-13
118+
system: x86_64-darwin
119+
- os: macos-latest
120+
system: aarch64-darwin
115121
runs-on: ${{ matrix.os }}
116122
steps:
117-
- uses: actions/checkout@v4
123+
- uses: actions/checkout@v4
118124

119-
- uses: cachix/install-nix-action@v30
120-
with:
121-
install_url: https://hydra.nixos.org/job/nix/master/installerScript/latest-finished/download/1/install
122-
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
125+
- name: Run NAR server
126+
run: |
127+
curl --location https://github.com/sandydoo/nar-toolbox/releases/download/v0.1.0/nar-toolbox-${{ matrix.system }} -O
128+
./nar-toolbox-${{ matrix.system }} serve &
123129
124-
- run: yarn install --frozen-lockfile
125-
- run: yarn build
130+
- uses: cachix/install-nix-action@v30
131+
with:
132+
install_url: https://hydra.nixos.org/job/nix/master/installerScript/latest-finished/download/1/install
133+
install_options: "--tarball-url-prefix https://localhost:8080"
134+
135+
- run: yarn install --frozen-lockfile
136+
- run: yarn build
126137

127-
- name: Test public cache
128-
uses: ./
129-
with:
130-
name: cachix-action
131-
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
132-
- run: nix-build test.nix
138+
- name: Test public cache
139+
uses: ./
140+
with:
141+
name: cachix-action
142+
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
143+
- run: nix-build test.nix

0 commit comments

Comments
 (0)