Skip to content

Commit

Permalink
Merge pull request #194 from cachix/fix-nix-tests
Browse files Browse the repository at this point in the history
ci: fetch latest installer from hydra
  • Loading branch information
sandydoo authored Dec 31, 2024
2 parents 3fcfc31 + bc8eb25 commit fc82bda
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
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

0 comments on commit fc82bda

Please sign in to comment.