Skip to content

Commit

Permalink
ci: fetch installer directly from hydra
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Nov 26, 2024
1 parent c27f50b commit 63fc608
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,9 @@ jobs:
steps:
- uses: actions/checkout@v4

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

- run: yarn install --frozen-lockfile
Expand Down

0 comments on commit 63fc608

Please sign in to comment.