Skip to content

Commit 8b2a567

Browse files
committed
Merge branch 'hkm/nixpkgs-update' into armv7a
# Conflicts: # compiler/ghc/default.nix # overlays/bootstrap.nix # overlays/linux-cross.nix # overlays/mingw_w64.nix
2 parents d0c35e7 + 8956daa commit 8b2a567

File tree

5,465 files changed

+81948
-772611
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,465 files changed

+81948
-772611
lines changed

.github/workflows/lints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
deadnix:
2424
runs-on: [self-hosted, linux]
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
- run: |
2828
nix run github:astro/deadnix -- --edit --no-lambda-pattern-names --exclude materialized
2929
TMPFILE=$(mktemp)

.github/workflows/pipeline.yml

Lines changed: 52 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -21,172 +21,163 @@ jobs:
2121
nix-build:
2222
runs-on: [self-hosted, linux]
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: "Run tests with ghc8107: Running the nix-build tests..."
2626
run: "./test/tests.sh ghc8107 nix-build"
2727

2828
unit-tests:
2929
runs-on: [self-hosted, linux]
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
- name: "Run tests with ghc8107: Running the unit tests..."
3333
run: "./test/tests.sh ghc8107 unit-tests"
3434

3535
runghc:
3636
runs-on: [self-hosted, linux]
3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939
- name: "Run tests with ghc8107: Checking that a nix-shell works for runghc..."
4040
run: "./test/tests.sh ghc8107 runghc"
4141

4242
cabal:
4343
runs-on: [self-hosted, linux]
4444
steps:
45-
- uses: actions/checkout@v3
45+
- uses: actions/checkout@v4
4646
- name: "Run tests with ghc8107: Checking that a nix-shell works for cabal..."
4747
run: "./test/tests.sh ghc8107 cabal"
4848

4949
cabal-doExactConfig:
5050
runs-on: [self-hosted, linux]
5151
steps:
52-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v4
5353
- name: "Run tests with ghc8107: Checking that a nix-shell works for cabal (doExactConfig component)..."
5454
run: "./test/tests.sh ghc8107 cabal-doExactConfig"
5555

5656
tests-benchmarks:
5757
runs-on: [self-hosted, linux]
5858
steps:
59-
- uses: actions/checkout@v3
59+
- uses: actions/checkout@v4
6060
- name: "Run tests with ghc8107: Checking that a nix-shell works for a project with test-suite build-tools and benchmarks..."
6161
run: "./test/tests.sh ghc8107 tests-benchmarks"
6262

6363
multi-target:
6464
runs-on: [self-hosted, linux]
6565
steps:
66-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@v4
6767
- name: "Run tests with ghc8107: Checking that a nix-shell works for a multi-target project..."
6868
run: "./test/tests.sh ghc8107 multi-target"
6969

7070
shellFor-single-package:
7171
runs-on: [self-hosted, linux]
7272
steps:
73-
- uses: actions/checkout@v3
73+
- uses: actions/checkout@v4
7474
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, multiple packages..."
7575
run: "./test/tests.sh ghc8107 shellFor-single-package"
7676

7777
shellFor-multiple-package:
7878
runs-on: [self-hosted, linux]
7979
steps:
80-
- uses: actions/checkout@v3
80+
- uses: actions/checkout@v4
8181
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, single package...y"
8282
run: "./test/tests.sh ghc8107 shellFor-multiple-package"
8383

8484
shellFor-hoogle:
8585
runs-on: [self-hosted, linux]
8686
steps:
87-
- uses: actions/checkout@v3
87+
- uses: actions/checkout@v4
8888
- name: "Run tests with ghc8107: Checking shellFor works for a cabal project, single package..."
8989
run: "./test/tests.sh ghc8107 shellFor-hoogle"
9090

9191
shellFor-not-depends:
9292
runs-on: [self-hosted, linux]
9393
steps:
94-
- uses: actions/checkout@v3
94+
- uses: actions/checkout@v4
9595
- name: "Run tests with ghc8107: Checking shellFor does not depend on given packages...y"
9696
run: "./test/tests.sh ghc8107 shellFor-not-depends"
9797

9898
maintainer-scripts:
9999
runs-on: [self-hosted, linux]
100100
steps:
101-
- uses: actions/checkout@v3
101+
- uses: actions/checkout@v4
102102
- name: "Run tests with ghc8107: Checking the maintainer scripts...y"
103103
run: "./test/tests.sh ghc8107 maintainer-scripts"
104104

105105
plan-extra-hackages:
106106
runs-on: [self-hosted, linux]
107107
steps:
108-
- uses: actions/checkout@v3
108+
- uses: actions/checkout@v4
109109
- name: "Run tests with ghc8107: Checking that plan construction works with extra Hackages..."
110110
run: "./test/tests.sh ghc8107 plan-extra-hackages"
111111

112112
build-extra-hackages:
113113
runs-on: [self-hosted, linux]
114114
steps:
115-
- uses: actions/checkout@v3
115+
- uses: actions/checkout@v4
116116
- name: "Run tests with ghc8107: Checking that package with extra Hackages can be build..."
117117
run: "./test/tests.sh ghc8107 build-extra-hackages"
118118

119119
hix:
120120
runs-on: [self-hosted, linux]
121121
steps:
122-
- uses: actions/checkout@v3
122+
- uses: actions/checkout@v4
123123
- name: "Run tests with ghc8107: End-2-end test of hix project initialization and flakes development shell ..."
124124
run: "./test/tests.sh ghc8107 hix"
125125

126126
# template:
127127
# runs-on: [self-hosted, linux]
128128
# steps:
129-
# - uses: actions/checkout@v3
129+
# - uses: actions/checkout@v4
130130
# - name: "Run tests with ghc8107: End-2-end test of hix project initialization and flakes development shell ..."
131131
# run: "./test/tests.sh ghc8107 template"
132132

133133
docs:
134134
runs-on: [self-hosted, linux]
135135
steps:
136-
- uses: actions/checkout@v3
136+
- uses: actions/checkout@v4
137137
- name: "Test examples in documentation ..."
138138
run: "./test/tests.sh ghc8107 docs"
139139

140140
hydra-ifdLevel-0-and-1:
141141
runs-on: [self-hosted, linux]
142+
timeout-minutes: 20
142143
steps:
143-
- uses: actions/checkout@v3
144+
- uses: actions/checkout@v4
144145
- name: "Check that jobset will evaluate in Hydra at ifdLevel 0 and 1"
145146
run: |
146147
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
147-
./check-hydra.sh --arg ifdLevel 0
148-
./check-hydra.sh --arg ifdLevel 1
148+
sed -i 's/runningHydraEvalTest = false;/runningHydraEvalTest = true;/' flake.nix
149+
sed -i 's/ifdLevel = 3;/ifdLevel = 0;/' flake.nix
150+
./check-hydra.sh
151+
sed -i 's/ifdLevel = 0;/ifdLevel = 1;/' flake.nix
152+
./check-hydra.sh
149153
150154
hydra-ifdLevel-2:
151155
runs-on: [self-hosted, linux]
156+
timeout-minutes: 20
152157
steps:
153-
- uses: actions/checkout@v3
158+
- uses: actions/checkout@v4
154159
- name: "Check that jobset will evaluate in Hydra at ifdLevel 2"
155160
run: |
156161
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
157-
./check-hydra.sh --arg ifdLevel 2
162+
sed -i 's/runningHydraEvalTest = false;/runningHydraEvalTest = true;/' flake.nix
163+
sed -i 's/ifdLevel = 3;/ifdLevel = 2;/' flake.nix
164+
./check-hydra.sh
158165
159-
hydra-ifdLevel-3-and-ghc-8-10:
166+
hydra-ifdLevel-3:
160167
runs-on: [self-hosted, linux]
168+
timeout-minutes: 30
161169
steps:
162-
- uses: actions/checkout@v3
163-
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3 and ghc 8.10"
170+
- uses: actions/checkout@v4
171+
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3"
164172
run: |
165173
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
166-
./check-hydra.sh --arg ifdLevel 3 --arg include 'x: __substring 0 6 x == "ghc810"'
167-
168-
hydra-ifdLevel-3-and-ghc-9-2:
169-
runs-on: [self-hosted, linux]
170-
steps:
171-
- uses: actions/checkout@v3
172-
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3 and ghc 9.2"
173-
run: |
174-
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
175-
./check-hydra.sh --arg ifdLevel 3 --arg include 'x: __substring 0 5 x == "ghc92"'
176-
177-
hydra-ifdLevel-3-and-not-ghc-8-10-or-9-2:
178-
runs-on: [self-hosted, linux]
179-
steps:
180-
- uses: actions/checkout@v3
181-
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3 and not (ghc 8.10 or ghc 9.2)"
182-
run: |
183-
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
184-
./check-hydra.sh --arg ifdLevel 3 --arg include 'x: !(__substring 0 6 x == "ghc810" || __substring 0 5 x == "ghc92")'
174+
sed -i 's/runningHydraEvalTest = false;/runningHydraEvalTest = true;/' flake.nix
175+
./check-hydra.sh
185176
186177
closure-size:
187178
runs-on: [self-hosted, linux]
188179
steps:
189-
- uses: actions/checkout@v3
180+
- uses: actions/checkout@v4
190181
- name: "Check closure size with ghc8107"
191182
run: |
192183
nix-build build.nix -A maintainer-scripts.check-closure-size --argstr compiler-nix-name ghc8107 -o check-closure-size.sh
@@ -196,7 +187,7 @@ jobs:
196187
update-docs:
197188
runs-on: [self-hosted, linux]
198189
steps:
199-
- uses: actions/checkout@v3
190+
- uses: actions/checkout@v4
200191
- name: "Update docs"
201192
run: |
202193
nix-build build.nix -A maintainer-scripts.update-docs -o update-docs.sh
@@ -205,7 +196,7 @@ jobs:
205196
check-materialization-concurrency:
206197
runs-on: [self-hosted, linux]
207198
steps:
208-
- uses: actions/checkout@v3
199+
- uses: actions/checkout@v4
209200
- name: "Make sure materialize function does not limit concurrency"
210201
run: |
211202
nix-build build.nix -A maintainer-scripts.check-materialization-concurrency -o check-materialization-concurrency.sh
@@ -214,7 +205,7 @@ jobs:
214205
check-path-support:
215206
runs-on: [self-hosted, linux]
216207
steps:
217-
- uses: actions/checkout@v3
208+
- uses: actions/checkout@v4
218209
- name: "Make sure non store paths like can be used as src"
219210
run: |
220211
nix-build build.nix -A maintainer-scripts.check-path-support --argstr compiler-nix-name ghc8107 -o check-path-support.sh
@@ -223,26 +214,33 @@ jobs:
223214
haskell-nix-roots-do-not-require-IFDs:
224215
runs-on: [self-hosted, linux]
225216
steps:
226-
- uses: actions/checkout@v3
217+
- uses: actions/checkout@v4
227218
- name: "Check that the haskell.nix roots do not require IFDs"
228219
run: nix build .#roots.x86_64-linux --accept-flake-config --option allow-import-from-derivation false
229220

230-
hydra-without-remote-builders:
221+
hydra-without-remote-builders-ghc8107:
231222
runs-on: [self-hosted, linux]
232223
steps:
233-
- uses: actions/checkout@v3
234-
- name: "Check that evaluation of hydra jobs works without using remote builders"
224+
- uses: actions/checkout@v4
225+
- name: "Check that evaluation of hydra jobs works without using remote builders for GHC 8.10.7"
235226
run: nix path-info --derivation .#requiredJobs.x86_64-darwin.required-unstable-ghc8107-native --show-trace --builders ''
236227

228+
hydra-without-remote-builders-ghc9101:
229+
runs-on: [self-hosted, linux]
230+
steps:
231+
- uses: actions/checkout@v4
232+
- name: "Check that evaluation of hydra jobs works without using remote builders for GHC 9.10.1"
233+
run: nix path-info --derivation .#requiredJobs.x86_64-darwin.required-unstable-ghc9101-native --show-trace --builders ''
234+
237235
hix-cabal:
238236
runs-on: [self-hosted, linux]
239237
steps:
240-
- uses: actions/checkout@v3
238+
- uses: actions/checkout@v4
241239
- name: "Check hix -- run github:haskell/cabal/3.10#cabal-install:exe:cabal -- --version"
242240
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"
243241

244242
nix-tools:
245243
runs-on: [self-hosted, linux]
246244
steps:
247-
- uses: actions/checkout@v3
245+
- uses: actions/checkout@v4
248246
- run: nix build ./nix-tools#checks.x86_64-linux.truncate-index --accept-flake-config

.github/workflows/publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: "Publish a flake to flakestry"
22
on:
33
push:
44
tags:
5-
- "v?[0-9]+.[0-9]+.[0-9]+"
6-
- "v?[0-9]+.[0-9]+"
5+
# This pattern matches tags in the format YYYY.MM.DD
6+
# It expects a four-digit year, followed by a two-digit month and day
7+
- "[0-9]{4}.[0-9]{2}.[0-9]{2}"
78
workflow_dispatch:
89
inputs:
910
tag:

.github/workflows/tag.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Weekly Date Tag"
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0'
6+
7+
jobs:
8+
tag-repo:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Create and push tag using current date
16+
run: |
17+
TAG_DATE=$(date -u "+%Y.%m.%d")
18+
if git rev-parse "$TAG_DATE" >/dev/null 2>&1; then
19+
echo "Tag $TAG_DATE already exists. Skipping tag creation."
20+
else
21+
git config user.name "github-actions"
22+
git config user.email "[email protected]"
23+
git tag $TAG_DATE
24+
git push origin $TAG_DATE
25+
fi

.github/workflows/updates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
update-pins:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- uses: cachix/install-nix-action@v15
1414
with:
1515
nix_path: nixpkgs=channel:nixos-unstable

0 commit comments

Comments
 (0)