Skip to content

Commit

Permalink
ci: fetch latest installer from hydra
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Nov 15, 2024
1 parent aa98514 commit 33c00b3
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,22 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@V27

- id: latest_installer
name: Fetch latest installer from Hydra
run: |
install_url=$(curl --header 'Accept: application/json' --location \
https://hydra.nixos.org/job/nix/master/installerScript/latest-finished \
| jq -r '.buildproducts."1".path')
echo "install_url=$install_url" >> $GITHUB_OUTPUT
- uses: cachix/install-nix-action@V27
with:
nix_path: nixpkgs=channel:nixos-22.11
install_url: https://nixos-nix-install-tests.cachix.org/serve/kkq45x7yrzvxq8627fi6hkswnfa7mg2l/install
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
install_url: ${steps.latest_installer.outputs.install_url}

- run: yarn install --frozen-lockfile
- run: yarn build

- name: Test public cache
uses: ./
with:
Expand Down

0 comments on commit 33c00b3

Please sign in to comment.