From f3f544c44bee9e88b5ab7976e42c675083a4f60b Mon Sep 17 00:00:00 2001 From: Sander Date: Tue, 31 Dec 2024 12:55:55 +0400 Subject: [PATCH 1/3] ci: fix latest installer tests --- .github/workflows/test.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9ead59d..b685421 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,9 +8,6 @@ on: env: nixpkgs_channel: nixpkgs=channel:nixos-24.05 oldest_supported_installer: nix-2.8.0 - # Fetch new versions from the Nix CI run: https://github.com/NixOS/nix/blob/master/.github/workflows/ci.yml - # TODO: add pinning upstream or rethink this - pinned_installer_hash: zfzfrbb59jsqrfkldwj8drcr9nhhc49k jobs: simple-build: @@ -87,23 +84,31 @@ jobs: uses: ./ - run: nix flake show github:NixOS/nixpkgs - installer-options: + latest-installer: strategy: fail-fast: false matrix: - os: - - ubuntu-latest - # - macos-latest missing installer for aarch64-darwin - - macos-13 + include: + - os: ubuntu-latest + system: x86_64-linux + - os: macos-latest + system: aarch64-darwin + - os: macos-13 + system: x86_64-darwin runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + - 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 & - name: Install Nix uses: ./ with: nix_path: ${{ env.nixpkgs_channel }} - install_options: --tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve - install_url: https://nixos-nix-install-tests.cachix.org/serve/${{ env.pinned_installer_hash }}/install + install_url: https://hydra.nixos.org/job/nix/master/installerScript/latest-finished/download/1/install + install_options: "--tarball-url-prefix http://localhost:8080" - run: nix-build test.nix oldest-supported-installer: From a49b703498f43e1426a1b820f27cf12cad57143f Mon Sep 17 00:00:00 2001 From: Sander Date: Tue, 31 Dec 2024 13:00:44 +0400 Subject: [PATCH 2/3] ci: fix act test --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b685421..1ff9461 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -137,5 +137,9 @@ jobs: steps: - uses: actions/checkout@v4 - run: curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash - - run: docker pull ghcr.io/catthehacker/ubuntu:js-20.04 - - run: ./bin/act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-20.04 push -j simple-build + - run: docker pull ghcr.io/catthehacker/ubuntu:js-24.04 + - run: | + ./bin/act push \ + -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-24.04 \ + -j simple-build \ + --matrix os:ubuntu-latest From a76df16350261308addb51d2386f28f5f0975987 Mon Sep 17 00:00:00 2001 From: Sander Date: Tue, 31 Dec 2024 13:11:14 +0400 Subject: [PATCH 3/3] ci: bump nixpkgs channel --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ff9461..70265e5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: - master env: - nixpkgs_channel: nixpkgs=channel:nixos-24.05 + nixpkgs_channel: nixpkgs=channel:nixos-24.11 oldest_supported_installer: nix-2.8.0 jobs: