Skip to content

Commit 2f46901

Browse files
committed
ci: update nixpkgs channel
1 parent 529d659 commit 2f46901

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/test.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- master
77

8+
env:
9+
nixpkgs_channel: nixpkgs=channel:nixos-23.11
10+
811
jobs:
912
simple-build:
1013
strategy:
@@ -20,7 +23,7 @@ jobs:
2023
- name: Install Nix
2124
uses: ./
2225
with:
23-
nix_path: nixpkgs=channel:nixos-22.11
26+
nix_path: ${{ env.nixpkgs_channel }}
2427
- run: nix-env -iA cachix -f https://cachix.org/api/v1/install
2528
- run: cat /etc/nix/nix.conf
2629
# cachix should be available and be able to configure a cache
@@ -41,8 +44,8 @@ jobs:
4144
- name: Install Nix
4245
uses: ./
4346
with:
44-
nix_path: nixpkgs=channel:nixos-20.03
45-
- run: test $NIX_PATH == "nixpkgs=channel:nixos-20.03"
47+
nix_path: ${{ env.nixpkgs_channel }}
48+
- run: test $NIX_PATH == '${{ env.nixpkgs_channel }}'
4649
- run: nix-build test.nix
4750

4851
extra-nix-config:
@@ -59,7 +62,7 @@ jobs:
5962
- name: Install Nix
6063
uses: ./
6164
with:
62-
nix_path: nixpkgs=channel:nixos-22.11
65+
nix_path: ${{ env.nixpkgs_channel }}
6366
extra_nix_config: |
6467
sandbox = relaxed
6568
- run: cat /etc/nix/nix.conf
@@ -94,7 +97,7 @@ jobs:
9497
- name: Install Nix
9598
uses: ./
9699
with:
97-
nix_path: nixpkgs=channel:nixos-22.11
100+
nix_path: ${{ env.nixpkgs_channel }}
98101
install_options: --tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve
99102
install_url: https://nixos-nix-install-tests.cachix.org/serve/s62m7lc0q0mz2mxxm9q0kkrcg90njzhq/install
100103
- run: nix-build test.nix
@@ -113,7 +116,7 @@ jobs:
113116
- name: Install Nix
114117
uses: ./
115118
with:
116-
nix_path: nixpkgs=channel:nixos-22.11
119+
nix_path: ${{ env.nixpkgs_channel }}
117120
install_url: https://releases.nixos.org/nix/nix-2.8.0/install
118121
- run: nix-build test.nix
119122

0 commit comments

Comments
 (0)