From 2f469017fc567f1b7fe6d1d7c21021c02ad55105 Mon Sep 17 00:00:00 2001 From: Sander Date: Wed, 15 May 2024 09:28:22 +0000 Subject: [PATCH] ci: update nixpkgs channel --- .github/workflows/test.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d286f21..97da5c3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,9 @@ on: branches: - master +env: + nixpkgs_channel: nixpkgs=channel:nixos-23.11 + jobs: simple-build: strategy: @@ -20,7 +23,7 @@ jobs: - name: Install Nix uses: ./ with: - nix_path: nixpkgs=channel:nixos-22.11 + nix_path: ${{ env.nixpkgs_channel }} - run: nix-env -iA cachix -f https://cachix.org/api/v1/install - run: cat /etc/nix/nix.conf # cachix should be available and be able to configure a cache @@ -41,8 +44,8 @@ jobs: - name: Install Nix uses: ./ with: - nix_path: nixpkgs=channel:nixos-20.03 - - run: test $NIX_PATH == "nixpkgs=channel:nixos-20.03" + nix_path: ${{ env.nixpkgs_channel }} + - run: test $NIX_PATH == '${{ env.nixpkgs_channel }}' - run: nix-build test.nix extra-nix-config: @@ -59,7 +62,7 @@ jobs: - name: Install Nix uses: ./ with: - nix_path: nixpkgs=channel:nixos-22.11 + nix_path: ${{ env.nixpkgs_channel }} extra_nix_config: | sandbox = relaxed - run: cat /etc/nix/nix.conf @@ -94,7 +97,7 @@ jobs: - name: Install Nix uses: ./ with: - nix_path: nixpkgs=channel:nixos-22.11 + 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/s62m7lc0q0mz2mxxm9q0kkrcg90njzhq/install - run: nix-build test.nix @@ -113,7 +116,7 @@ jobs: - name: Install Nix uses: ./ with: - nix_path: nixpkgs=channel:nixos-22.11 + nix_path: ${{ env.nixpkgs_channel }} install_url: https://releases.nixos.org/nix/nix-2.8.0/install - run: nix-build test.nix