-
Notifications
You must be signed in to change notification settings - Fork 240
246 lines (213 loc) · 8.6 KB
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
name: "Run tests with ghc8107"
on:
pull_request:
branches:
- master
push:
branches:
- master
defaults:
run:
shell: bash
# do we really want nixos-unstable?
env:
NIX_PATH: "nixpkgs=channel:nixos-unstable"
jobs:
nix-build:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Running the nix-build tests..."
run: "./test/tests.sh ghc8107 nix-build"
unit-tests:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Running the unit tests..."
run: "./test/tests.sh ghc8107 unit-tests"
runghc:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking that a nix-shell works for runghc..."
run: "./test/tests.sh ghc8107 runghc"
cabal:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking that a nix-shell works for cabal..."
run: "./test/tests.sh ghc8107 cabal"
cabal-doExactConfig:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking that a nix-shell works for cabal (doExactConfig component)..."
run: "./test/tests.sh ghc8107 cabal-doExactConfig"
tests-benchmarks:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking that a nix-shell works for a project with test-suite build-tools and benchmarks..."
run: "./test/tests.sh ghc8107 tests-benchmarks"
multi-target:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking that a nix-shell works for a multi-target project..."
run: "./test/tests.sh ghc8107 multi-target"
shellFor-single-package:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, multiple packages..."
run: "./test/tests.sh ghc8107 shellFor-single-package"
shellFor-multiple-package:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, single package...y"
run: "./test/tests.sh ghc8107 shellFor-multiple-package"
shellFor-hoogle:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, single package..."
run: "./test/tests.sh ghc8107 shellFor-hoogle"
shellFor-not-depends:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking shellFor does not depend on given packages...y"
run: "./test/tests.sh ghc8107 shellFor-not-depends"
maintainer-scripts:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking the maintainer scripts...y"
run: "./test/tests.sh ghc8107 maintainer-scripts"
plan-extra-hackages:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking that plan construction works with extra Hackages..."
run: "./test/tests.sh ghc8107 plan-extra-hackages"
build-extra-hackages:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: Checking that package with extra Hackages can be build..."
run: "./test/tests.sh ghc8107 build-extra-hackages"
hix:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Run tests with ghc8107: End-2-end test of hix project initialization and flakes development shell ..."
run: "./test/tests.sh ghc8107 hix"
# template:
# runs-on: [self-hosted, linux]
# steps:
# - uses: actions/checkout@v4
# - name: "Run tests with ghc8107: End-2-end test of hix project initialization and flakes development shell ..."
# run: "./test/tests.sh ghc8107 template"
docs:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Test examples in documentation ..."
run: "./test/tests.sh ghc8107 docs"
hydra-ifdLevel-0-and-1:
runs-on: [self-hosted, linux]
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: "Check that jobset will evaluate in Hydra at ifdLevel 0 and 1"
run: |
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
sed -i 's/runningHydraEvalTest = false;/runningHydraEvalTest = true;/' flake.nix
sed -i 's/ifdLevel = 3;/ifdLevel = 0;/' flake.nix
./check-hydra.sh
sed -i 's/ifdLevel = 0;/ifdLevel = 1;/' flake.nix
./check-hydra.sh
hydra-ifdLevel-2:
runs-on: [self-hosted, linux]
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: "Check that jobset will evaluate in Hydra at ifdLevel 2"
run: |
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
sed -i 's/runningHydraEvalTest = false;/runningHydraEvalTest = true;/' flake.nix
sed -i 's/ifdLevel = 3;/ifdLevel = 2;/' flake.nix
./check-hydra.sh
hydra-ifdLevel-3:
runs-on: [self-hosted, linux]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3"
run: |
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
sed -i 's/runningHydraEvalTest = false;/runningHydraEvalTest = true;/' flake.nix
./check-hydra.sh
closure-size:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Check closure size with ghc8107"
run: |
nix-build build.nix -A maintainer-scripts.check-closure-size --argstr compiler-nix-name ghc8107 -o check-closure-size.sh
echo "+++ Closure size (MB)"
./check-closure-size.sh
update-docs:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Update docs"
run: |
nix-build build.nix -A maintainer-scripts.update-docs -o update-docs.sh
./update-docs.sh
check-materialization-concurrency:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Make sure materialize function does not limit concurrency"
run: |
nix-build build.nix -A maintainer-scripts.check-materialization-concurrency -o check-materialization-concurrency.sh
./check-materialization-concurrency.sh
check-path-support:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Make sure non store paths like can be used as src"
run: |
nix-build build.nix -A maintainer-scripts.check-path-support --argstr compiler-nix-name ghc8107 -o check-path-support.sh
./check-path-support.sh
haskell-nix-roots-do-not-require-IFDs:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Check that the haskell.nix roots do not require IFDs"
run: nix build .#roots.x86_64-linux --accept-flake-config --option allow-import-from-derivation false
hydra-without-remote-builders-ghc8107:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Check that evaluation of hydra jobs works without using remote builders for GHC 8.10.7"
run: nix path-info --derivation .#requiredJobs.x86_64-darwin.required-unstable-ghc8107-native --show-trace --builders ''
hydra-without-remote-builders-ghc9101:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Check that evaluation of hydra jobs works without using remote builders for GHC 9.10.1"
run: nix path-info --derivation .#requiredJobs.x86_64-darwin.required-unstable-ghc9101-native --show-trace --builders ''
hix-cabal:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: "Check hix -- run github:haskell/cabal/3.10#cabal-install:exe:cabal -- --version"
run: "HIX_DIR=$(mktemp -d) nix run .#hix --accept-flake-config -- run github:haskell/cabal/3.10#cabal-install:exe:cabal --accept-flake-config --override-input haskellNix . -- --version"
nix-tools:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- run: nix build ./nix-tools#checks.x86_64-linux.truncate-index --accept-flake-config