Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fetch latest installer from hydra #194

Merged
merged 11 commits into from
Dec 31, 2024
25 changes: 19 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,31 @@ jobs:
nix-master:
strategy:
matrix:
os: [ubuntu-latest, macos-13]
include:
- os: ubuntu-latest
system: x86_64-linux
- os: macos-13
system: x86_64-darwin
- os: macos-latest
system: aarch64-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v30

- name: Run NAR server
run: |
curl --location https://github.com/cachix/nar-toolbox/releases/download/v0.1.0/nar-toolbox-${{ matrix.system }} -O
chmod +x ./nar-toolbox-${{ matrix.system }}
./nar-toolbox-${{ matrix.system }} serve https://cache.nixos.org &

- uses: cachix/install-nix-action@v30
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: https://hydra.nixos.org/job/nix/master/installerScript/latest-finished/download/1/install
install_options: "--tarball-url-prefix http://localhost:8080"

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

- name: Test public cache
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
currentTime ? builtins.currentTime,
}:

with (import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11") { });
with (import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.11") { });

let
drv =
Expand Down
Loading