5
5
branches :
6
6
- master
7
7
8
+ env :
9
+ nixpkgs_channel : nixpkgs=channel:nixos-23.11
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
+
8
15
jobs :
9
16
simple-build :
10
17
strategy :
18
+ fail-fast : false
11
19
matrix :
12
- os : [ubuntu-latest, macos-latest]
20
+ os :
21
+ - ubuntu-latest
22
+ - macos-latest
23
+ - macos-13
13
24
runs-on : ${{ matrix.os }}
14
25
steps :
15
26
- uses : actions/checkout@v4
16
27
- name : Install Nix
17
28
uses : ./
18
29
with :
19
- nix_path : nixpkgs=channel:nixos-22.11
30
+ nix_path : ${{ env.nixpkgs_channel }}
20
31
- run : nix-env -iA cachix -f https://cachix.org/api/v1/install
21
32
- run : cat /etc/nix/nix.conf
22
33
# cachix should be available and be able to configure a cache
23
34
- run : cachix use cachix
24
35
- run : nix-build test.nix
36
+
25
37
custom-nix-path :
26
38
strategy :
39
+ fail-fast : false
27
40
matrix :
28
- os : [ubuntu-latest, macos-latest]
41
+ os :
42
+ - ubuntu-latest
43
+ - macos-latest
44
+ - macos-13
29
45
runs-on : ${{ matrix.os }}
30
46
steps :
31
47
- uses : actions/checkout@v4
32
48
- name : Install Nix
33
49
uses : ./
34
50
with :
35
- nix_path : nixpkgs=channel:nixos-20.03
36
- - run : test $NIX_PATH == "nixpkgs=channel:nixos-20.03"
51
+ nix_path : ${{ env.nixpkgs_channel }}
52
+ - run : test $NIX_PATH == '${{ env.nixpkgs_channel }}'
37
53
- run : nix-build test.nix
38
54
39
55
extra-nix-config :
40
56
strategy :
57
+ fail-fast : false
41
58
matrix :
42
- os : [ubuntu-latest, macos-latest]
59
+ os :
60
+ - ubuntu-latest
61
+ - macos-latest
62
+ - macos-13
43
63
runs-on : ${{ matrix.os }}
44
64
steps :
45
65
- uses : actions/checkout@v4
46
66
- name : Install Nix
47
67
uses : ./
48
68
with :
49
- nix_path : nixpkgs=channel:nixos-22.11
69
+ nix_path : ${{ env.nixpkgs_channel }}
50
70
extra_nix_config : |
51
71
sandbox = relaxed
52
72
- run : cat /etc/nix/nix.conf
53
73
- run : nix-build test.nix --arg noChroot true
54
74
55
75
flakes :
56
76
strategy :
77
+ fail-fast : false
57
78
matrix :
58
- os : [ubuntu-latest, macos-latest]
79
+ os :
80
+ - ubuntu-latest
81
+ - macos-latest
82
+ - macos-13
59
83
runs-on : ${{ matrix.os }}
60
84
steps :
61
85
- uses : actions/checkout@v4
@@ -65,37 +89,45 @@ jobs:
65
89
66
90
installer-options :
67
91
strategy :
92
+ fail-fast : false
68
93
matrix :
69
- os : [ubuntu-latest, macos-latest]
94
+ os :
95
+ - ubuntu-latest
96
+ # - macos-latest missing installer for aarch64-darwin
97
+ - macos-13
70
98
runs-on : ${{ matrix.os }}
71
99
steps :
72
100
- uses : actions/checkout@v4
73
101
- name : Install Nix
74
102
uses : ./
75
103
with :
76
- nix_path : nixpkgs=channel:nixos-22.11
104
+ nix_path : ${{ env.nixpkgs_channel }}
77
105
install_options : --tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve
78
- install_url : https://nixos-nix-install-tests.cachix.org/serve/s62m7lc0q0mz2mxxm9q0kkrcg90njzhq /install
106
+ install_url : https://nixos-nix-install-tests.cachix.org/serve/${{ env.pinned_installer_hash }} /install
79
107
- run : nix-build test.nix
80
108
81
109
oldest-supported-installer :
82
110
strategy :
83
- matrix :
84
- os : [ubuntu-latest, macos-latest]
111
+ fail-fast : false
112
+ matrix :
113
+ os :
114
+ - ubuntu-latest
115
+ - macos-latest
116
+ - macos-13
85
117
runs-on : ${{ matrix.os }}
86
118
steps :
87
119
- uses : actions/checkout@v4
88
120
- name : Install Nix
89
121
uses : ./
90
122
with :
91
- nix_path : nixpkgs=channel:nixos-22.11
92
- install_url : https://releases.nixos.org/nix/nix-2.8.0 /install
123
+ nix_path : ${{ env.nixpkgs_channel }}
124
+ install_url : https://releases.nixos.org/nix/${{ env.oldest_supported_installer }} /install
93
125
- run : nix-build test.nix
94
126
95
127
act-support :
96
128
strategy :
97
- matrix :
98
- os : [ubuntu-latest]
129
+ matrix :
130
+ os : [ubuntu-latest]
99
131
runs-on : ${{ matrix.os }}
100
132
steps :
101
133
- uses : actions/checkout@v4
0 commit comments