|
6 | 6 | - master
|
7 | 7 |
|
8 | 8 | env:
|
9 |
| - nixpkgs_channel: nixpkgs=channel:nixos-24.05 |
| 9 | + nixpkgs_channel: nixpkgs=channel:nixos-24.11 |
10 | 10 | 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 |
14 | 11 |
|
15 | 12 | jobs:
|
16 | 13 | simple-build:
|
@@ -87,23 +84,31 @@ jobs:
|
87 | 84 | uses: ./
|
88 | 85 | - run: nix flake show github:NixOS/nixpkgs
|
89 | 86 |
|
90 |
| - installer-options: |
| 87 | + latest-installer: |
91 | 88 | strategy:
|
92 | 89 | fail-fast: false
|
93 | 90 | 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 |
98 | 98 | runs-on: ${{ matrix.os }}
|
99 | 99 | steps:
|
100 | 100 | - 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 & |
101 | 106 | - name: Install Nix
|
102 | 107 | uses: ./
|
103 | 108 | with:
|
104 | 109 | 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" |
107 | 112 | - run: nix-build test.nix
|
108 | 113 |
|
109 | 114 | oldest-supported-installer:
|
@@ -132,5 +137,9 @@ jobs:
|
132 | 137 | steps:
|
133 | 138 | - uses: actions/checkout@v4
|
134 | 139 | - 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