Skip to content

Commit 2abb29c

Browse files
committed
Check nix setup
1 parent 2a03be2 commit 2abb29c

File tree

1 file changed

+1
-216
lines changed

1 file changed

+1
-216
lines changed

.github/workflows/pipeline.yml

Lines changed: 1 addition & 216 deletions
Original file line numberDiff line numberDiff line change
@@ -24,221 +24,6 @@ jobs:
2424
- uses: actions/checkout@v3
2525
- name: "Run tests with ghc8107: Running the nix-build tests..."
2626
run: |
27+
which nix
2728
nix --version
28-
./test/tests.sh ghc8107 nix-build
2929
30-
unit-tests:
31-
runs-on: [self-hosted, linux]
32-
steps:
33-
- uses: actions/checkout@v3
34-
- name: "Run tests with ghc8107: Running the unit tests..."
35-
run: "./test/tests.sh ghc8107 unit-tests"
36-
37-
runghc:
38-
runs-on: [self-hosted, linux]
39-
steps:
40-
- uses: actions/checkout@v3
41-
- name: "Run tests with ghc8107: Checking that a nix-shell works for runghc..."
42-
run: "./test/tests.sh ghc8107 runghc"
43-
44-
cabal:
45-
runs-on: [self-hosted, linux]
46-
steps:
47-
- uses: actions/checkout@v3
48-
- name: "Run tests with ghc8107: Checking that a nix-shell works for cabal..."
49-
run: "./test/tests.sh ghc8107 cabal"
50-
51-
cabal-doExactConfig:
52-
runs-on: [self-hosted, linux]
53-
steps:
54-
- uses: actions/checkout@v3
55-
- name: "Run tests with ghc8107: Checking that a nix-shell works for cabal (doExactConfig component)..."
56-
run: "./test/tests.sh ghc8107 cabal-doExactConfig"
57-
58-
tests-benchmarks:
59-
runs-on: [self-hosted, linux]
60-
steps:
61-
- uses: actions/checkout@v3
62-
- name: "Run tests with ghc8107: Checking that a nix-shell works for a project with test-suite build-tools and benchmarks..."
63-
run: "./test/tests.sh ghc8107 tests-benchmarks"
64-
65-
multi-target:
66-
runs-on: [self-hosted, linux]
67-
steps:
68-
- uses: actions/checkout@v3
69-
- name: "Run tests with ghc8107: Checking that a nix-shell works for a multi-target project..."
70-
run: "./test/tests.sh ghc8107 multi-target"
71-
72-
shellFor-single-package:
73-
runs-on: [self-hosted, linux]
74-
steps:
75-
- uses: actions/checkout@v3
76-
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, multiple packages..."
77-
run: "./test/tests.sh ghc8107 shellFor-single-package"
78-
79-
shellFor-multiple-package:
80-
runs-on: [self-hosted, linux]
81-
steps:
82-
- uses: actions/checkout@v3
83-
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, single package...y"
84-
run: "./test/tests.sh ghc8107 shellFor-multiple-package"
85-
86-
shellFor-hoogle:
87-
runs-on: [self-hosted, linux]
88-
steps:
89-
- uses: actions/checkout@v3
90-
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, single package..."
91-
run: "./test/tests.sh ghc8107 shellFor-hoogle"
92-
93-
shellFor-not-depends:
94-
runs-on: [self-hosted, linux]
95-
steps:
96-
- uses: actions/checkout@v3
97-
- name: "Run tests with ghc8107: Checking shellFor does not depend on given packages...y"
98-
run: "./test/tests.sh ghc8107 shellFor-not-depends"
99-
100-
maintainer-scripts:
101-
runs-on: [self-hosted, linux]
102-
steps:
103-
- uses: actions/checkout@v3
104-
- name: "Run tests with ghc8107: Checking the maintainer scripts...y"
105-
run: "./test/tests.sh ghc8107 maintainer-scripts"
106-
107-
plan-extra-hackages:
108-
runs-on: [self-hosted, linux]
109-
steps:
110-
- uses: actions/checkout@v3
111-
- name: "Run tests with ghc8107: Checking that plan construction works with extra Hackages..."
112-
run: "./test/tests.sh ghc8107 plan-extra-hackages"
113-
114-
build-extra-hackages:
115-
runs-on: [self-hosted, linux]
116-
steps:
117-
- uses: actions/checkout@v3
118-
- name: "Run tests with ghc8107: Checking that package with extra Hackages can be build..."
119-
run: "./test/tests.sh ghc8107 build-extra-hackages"
120-
121-
hix:
122-
runs-on: [self-hosted, linux]
123-
steps:
124-
- uses: actions/checkout@v3
125-
- name: "Run tests with ghc8107: End-2-end test of hix project initialization and flakes development shell ..."
126-
run: "./test/tests.sh ghc8107 hix"
127-
128-
docs:
129-
runs-on: [self-hosted, linux]
130-
steps:
131-
- uses: actions/checkout@v3
132-
- name: "Test examples in documentation ..."
133-
run: "./test/tests.sh ghc8107 docs"
134-
135-
hydra-ifdLevel-0-and-1:
136-
runs-on: [self-hosted, linux]
137-
steps:
138-
- uses: actions/checkout@v3
139-
- name: "Check that jobset will evaluate in Hydra at ifdLevel 0 and 1"
140-
run: |
141-
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
142-
./check-hydra.sh --arg ifdLevel 0
143-
./check-hydra.sh --arg ifdLevel 1
144-
145-
hydra-ifdLevel-2:
146-
runs-on: [self-hosted, linux]
147-
steps:
148-
- uses: actions/checkout@v3
149-
- name: "Check that jobset will evaluate in Hydra at ifdLevel 2"
150-
run: |
151-
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
152-
./check-hydra.sh --arg ifdLevel 2
153-
154-
hydra-ifdLevel-3-and-ghc-8-10:
155-
runs-on: [self-hosted, linux]
156-
steps:
157-
- uses: actions/checkout@v3
158-
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3 and ghc 8.10"
159-
run: |
160-
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
161-
./check-hydra.sh --arg ifdLevel 3 --arg include 'x: __substring 0 6 x == "ghc810"'
162-
163-
hydra-ifdLevel-3-and-ghc-9-2:
164-
runs-on: [self-hosted, linux]
165-
steps:
166-
- uses: actions/checkout@v3
167-
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3 and ghc 9.2"
168-
run: |
169-
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
170-
./check-hydra.sh --arg ifdLevel 3 --arg include 'x: __substring 0 5 x == "ghc92"'
171-
172-
hydra-ifdLevel-3-and-not-ghc-8-10-or-9-2:
173-
runs-on: [self-hosted, linux]
174-
steps:
175-
- uses: actions/checkout@v3
176-
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3 and not (ghc 8.10 or ghc 9.2)"
177-
run: |
178-
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
179-
./check-hydra.sh --arg ifdLevel 3 --arg include 'x: !(__substring 0 6 x == "ghc810" || __substring 0 5 x == "ghc92")'
180-
181-
closure-size:
182-
runs-on: [self-hosted, linux]
183-
steps:
184-
- uses: actions/checkout@v3
185-
- name: "Check closure size with ghc8107"
186-
run: |
187-
nix-build build.nix -A maintainer-scripts.check-closure-size --argstr compiler-nix-name ghc8107 -o check-closure-size.sh
188-
echo "+++ Closure size (MB)"
189-
./check-closure-size.sh
190-
191-
update-docs:
192-
runs-on: [self-hosted, linux]
193-
steps:
194-
- uses: actions/checkout@v3
195-
- name: "Update docs"
196-
run: |
197-
nix-build build.nix -A maintainer-scripts.update-docs -o update-docs.sh
198-
./update-docs.sh
199-
200-
check-materialization-concurrency:
201-
runs-on: [self-hosted, linux]
202-
steps:
203-
- uses: actions/checkout@v3
204-
- name: "Make sure materialize function does not limit concurrency"
205-
run: |
206-
nix-build build.nix -A maintainer-scripts.check-materialization-concurrency -o check-materialization-concurrency.sh
207-
./check-materialization-concurrency.sh
208-
209-
check-path-support:
210-
runs-on: [self-hosted, linux]
211-
steps:
212-
- uses: actions/checkout@v3
213-
- name: "Make sure non store paths like can be used as src"
214-
run: |
215-
nix-build build.nix -A maintainer-scripts.check-path-support --argstr compiler-nix-name ghc8107 -o check-path-support.sh
216-
./check-path-support.sh
217-
218-
haskell-nix-roots-do-not-require-IFDs:
219-
runs-on: [self-hosted, linux]
220-
steps:
221-
- uses: actions/checkout@v3
222-
- name: "Check that the haskell.nix roots do not require IFDs"
223-
run: nix build .#roots.x86_64-linux --accept-flake-config --option allow-import-from-derivation false
224-
225-
hydra-without-remote-builders:
226-
runs-on: [self-hosted, linux]
227-
steps:
228-
- uses: actions/checkout@v3
229-
- name: "Check that evaluation of hydra jobs works without using remote builders"
230-
run: nix-instantiate release.nix -A x86_64-darwin.required-unstable-ghc8107-native --show-trace --builders ''
231-
232-
hix-cabal:
233-
runs-on: [self-hosted, linux]
234-
steps:
235-
- uses: actions/checkout@v3
236-
- name: "Check hix -- run github:haskell/cabal/3.8#cabal-install:exe:cabal -- --version"
237-
run: "HIX_DIR=$(mktemp -d) nix run .#hix --accept-flake-config -- run github:haskell/cabal/3.8#cabal-install:exe:cabal --accept-flake-config --override-input haskellNix . -- --version"
238-
239-
nix-tools-build:
240-
runs-on: [self-hosted, linux]
241-
steps:
242-
- uses: actions/checkout@v3
243-
- name: "nix-tools build"
244-
run: cd ./nix-tools && .buildkite/nix-tools-build.sh

0 commit comments

Comments
 (0)