Skip to content

Commit 89fd1e9

Browse files
authored
Merge pull request #220 from cachix/fix-master-tests
ci: fix latest installer tests
2 parents 14344b3 + a76df16 commit 89fd1e9

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

.github/workflows/test.yml

+22-13
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ on:
66
- master
77

88
env:
9-
nixpkgs_channel: nixpkgs=channel:nixos-24.05
9+
nixpkgs_channel: nixpkgs=channel:nixos-24.11
1010
oldest_supported_installer: nix-2.8.0
11-
# Fetch new versions from the Nix CI run: https://github.com/NixOS/nix/blob/master/.github/workflows/ci.yml
12-
# TODO: add pinning upstream or rethink this
13-
pinned_installer_hash: zfzfrbb59jsqrfkldwj8drcr9nhhc49k
1411

1512
jobs:
1613
simple-build:
@@ -87,23 +84,31 @@ jobs:
8784
uses: ./
8885
- run: nix flake show github:NixOS/nixpkgs
8986

90-
installer-options:
87+
latest-installer:
9188
strategy:
9289
fail-fast: false
9390
matrix:
94-
os:
95-
- ubuntu-latest
96-
# - macos-latest missing installer for aarch64-darwin
97-
- macos-13
91+
include:
92+
- os: ubuntu-latest
93+
system: x86_64-linux
94+
- os: macos-latest
95+
system: aarch64-darwin
96+
- os: macos-13
97+
system: x86_64-darwin
9898
runs-on: ${{ matrix.os }}
9999
steps:
100100
- uses: actions/checkout@v4
101+
- name: Run NAR server
102+
run: |
103+
curl --location https://github.com/cachix/nar-toolbox/releases/download/v0.1.0/nar-toolbox-${{ matrix.system }} -O
104+
chmod +x ./nar-toolbox-${{ matrix.system }}
105+
./nar-toolbox-${{ matrix.system }} serve https://cache.nixos.org &
101106
- name: Install Nix
102107
uses: ./
103108
with:
104109
nix_path: ${{ env.nixpkgs_channel }}
105-
install_options: --tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve
106-
install_url: https://nixos-nix-install-tests.cachix.org/serve/${{ env.pinned_installer_hash }}/install
110+
install_url: https://hydra.nixos.org/job/nix/master/installerScript/latest-finished/download/1/install
111+
install_options: "--tarball-url-prefix http://localhost:8080"
107112
- run: nix-build test.nix
108113

109114
oldest-supported-installer:
@@ -132,5 +137,9 @@ jobs:
132137
steps:
133138
- uses: actions/checkout@v4
134139
- run: curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
135-
- run: docker pull ghcr.io/catthehacker/ubuntu:js-20.04
136-
- run: ./bin/act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-20.04 push -j simple-build
140+
- run: docker pull ghcr.io/catthehacker/ubuntu:js-24.04
141+
- run: |
142+
./bin/act push \
143+
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-24.04 \
144+
-j simple-build \
145+
--matrix os:ubuntu-latest

0 commit comments

Comments
 (0)