@@ -22,76 +22,22 @@ jobs:
22
22
matrix :
23
23
system :
24
24
- aarch64
25
- - x86_64
26
25
nix-command :
27
- - fmt -- --check
28
26
- eval .#apps.$_system.nixos-shell.program
29
27
- eval .#apps.$_system.setup.program
30
28
31
29
include :
32
- - nix-command : develop .#jdk8 --profile profile
33
- system : x86_64
34
- - nix-command : develop .#jdk11 --profile profile
35
- system : x86_64
36
- - nix-command : develop .#jdk17 --profile profile
37
- system : x86_64
38
- - nix-command : develop .#php74 --profile profile
39
- system : x86_64
40
- - nix-command : develop .#php80 --profile profile
41
- system : x86_64
42
- - nix-command : develop .#php81 --profile profile
43
- system : x86_64
44
-
45
- - nix-command : build .#homeConfigurations."tobias@gamer".activationPackage
46
- system : x86_64
47
- - nix-command : build .#homeConfigurations."tobhap@M386".activationPackage
48
- system : x86_64
49
- deploy-agent : M386
50
- deploy-args : --async
51
-
52
- - nix-command : build .#nixOnDroidConfigurations.oneplus5.activationPackage --impure
30
+ - nix-command : build .#nixOnDroidConfigurations.sams9.activationPackage --impure --print-build-logs --log-lines 9999 --accept-flake-config
53
31
system : aarch64
54
-
55
- - nix-command : build .#nixosConfigurations.argon.config.system.build.toplevel
56
- system : aarch64
57
- deploy-agent : argon
58
- - nix-command : build .#nixosConfigurations.krypton.config.system.build.toplevel
59
- system : x86_64
60
- deploy-agent : krypton
61
- - nix-command : build .#nixosConfigurations.neon.config.system.build.toplevel
62
- system : x86_64
63
- deploy-agent : neon
32
+ deploy-agent : sams9
64
33
deploy-args : --async
65
- - nix-command : build .#nixosConfigurations.xenon.config.system.build.toplevel
66
- system : aarch64
67
- deploy-agent : xenon
68
-
69
- - nix-command : build .#packages.$_system.rpi-firmware
70
- system : aarch64
71
- - nix-command : build .#packages.$_system.rpi-image
72
- system : aarch64
73
- - nix-command : build .#packages.$_system.installer-image
74
- system : x86_64
75
34
76
35
steps :
77
36
- name : Checkout repository
78
37
uses : actions/checkout@v3
79
38
with :
80
39
ref : ${{ inputs.branch }}
81
40
82
- - name : Install nix
83
- uses : cachix/install-nix-action@v20
84
- with :
85
- extra_nix_config : |
86
- keep-going = true
87
- show-trace = true
88
-
89
- - name : Setup cachix
90
- uses : cachix/cachix-action@v12
91
- with :
92
- name : gerschtli
93
- authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
94
-
95
41
- name : Build command (aarch64)
96
42
if : matrix.system == 'aarch64'
97
43
# FIXME: use upstream once --tty is removed
100
46
with :
101
47
arch : aarch64
102
48
distro : alpine_latest
103
- githubToken : ${{ github.token }}
104
49
dockerRunArgs : --volume /nix:/nix
105
50
install : |
106
51
apk --no-cache add curl git xz
@@ -109,17 +54,17 @@ jobs:
109
54
_system: ${{ matrix.system }}-linux
110
55
CACHIX_ACTIVATE_TOKEN: ${{ secrets.CACHIX_ACTIVATE_TOKEN || 'no-value' }}
111
56
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
112
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113
57
run : |
114
58
set -euo pipefail
115
59
116
60
mkdir -p /home/ci/.config/nix
117
61
118
62
cat <<EOF > /home/ci/.config/nix/nix.conf
119
63
experimental-features = nix-command flakes
64
+ extra-experimental-features = flakes
65
+ accept-flake-config = true
120
66
keep-going = true
121
67
show-trace = true
122
- access-tokens = github.com=$GITHUB_TOKEN
123
68
EOF
124
69
125
70
chown --recursive ci:ci /nix /home/ci
137
82
--fail \
138
83
--location \
139
84
"https://nixos.org/nix/install"
85
+ # "https://releases.nixos.org/nix/nix-2.14.1/install"
140
86
141
87
su ci -c "sh /tmp/install --no-channel-add --no-daemon"
142
88
rm /tmp/install
145
91
su ci -c ". /home/ci/.nix-profile/etc/profile.d/nix.sh; $*"
146
92
}
147
93
148
- # FIXME: setting build-hook is needed because default hook `nix __build-remote` is not available
94
+ # FIXME: setting build-hook is needed because default hook `nix __build-remote` is not available - NixOS/nix#7217
149
95
function build_hook() {
150
96
local nix_path="$(run which nix)"
151
97
echo "${nix_path/bin\/nix/libexec/nix/build-remote}"
@@ -158,50 +104,32 @@ jobs:
158
104
run cachix --version
159
105
run cachix use gerschtli
160
106
run cachix use nix-on-droid
107
+ run cachix use 573-bc
108
+ run cachix use nix-community
109
+ run cachix use tweag-jupyter
110
+ run cachix use coq
111
+ run cachix use nixpkgs-ruby
161
112
162
113
163
114
echo "::group::Build command"
164
115
run git config --global --add safe.directory "$(pwd)"
165
116
166
117
run nix ${{ matrix.nix-command }}
167
118
168
-
169
- ${{ github.ref == 'refs/heads/master' && inputs.branch == ' ' && matrix.deploy-agent &&
119
+ # FIXME I left the inputs.branch == '' clause off on purpose to test what's its' semantics
120
+ ${{ github.ref == 'refs/heads/wsl2 ' && matrix.deploy-agent &&
170
121
format(
171
122
'
172
123
echo "::group::Build spec"
173
- spec="$(run nix build --print-out-paths ".#cachix-deploy-spec-{0}")"
124
+ spec="$(run nix build --print-out-paths ".#cachix-deploy-spec-{0}" --impure )"
174
125
175
126
echo "::group::Upload spec"
176
- run cachix push gerschtli "$spec"
177
-
178
- echo "::group::Activate deployment"
179
- run cachix deploy activate --agent "{0}" {1} "$spec"
127
+ run cachix push 573-bc "$spec"
180
128
',
181
129
matrix.deploy-agent,
182
130
matrix.deploy-args
183
131
)
184
132
|| 'echo "::group::Skip spec deploy"'
185
133
}}
186
134
187
- - name : Build command (x86_64)
188
- if : matrix.system == 'x86_64'
189
- env :
190
- _system : ${{ matrix.system }}-linux
191
- run : nix ${{ matrix.nix-command }}
192
-
193
- - name : Deploy cachix-agent spec (x86_64)
194
- if : matrix.system == 'x86_64' && github.ref == 'refs/heads/master' && inputs.branch == '' && matrix.deploy-agent
195
- env :
196
- CACHIX_ACTIVATE_TOKEN : ${{ secrets.CACHIX_ACTIVATE_TOKEN }}
197
- run : |
198
- echo "::group::Build spec"
199
- spec="$(nix build --print-out-paths ".#cachix-deploy-spec-${{ matrix.deploy-agent }}")"
200
-
201
- echo "::group::Upload spec"
202
- cachix push gerschtli "$spec"
203
-
204
- echo "::group::Activate deployment"
205
- cachix deploy activate --agent "${{ matrix.deploy-agent }}" ${{ matrix.deploy-args }} "$spec"
206
-
207
135
# vim: set sw=2:
0 commit comments