Skip to content

Commit 16bb0e8

Browse files
committed
Update bootstrap plans: 8.10.7, 9.0.2, 9.2.8, 9.4.8, 9.6.4, 9.8.1
And add the relevant CI jobs for these plans
1 parent bfd4c0a commit 16bb0e8

11 files changed

+10047
-2090
lines changed

.github/workflows/bootstrap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
os: [ubuntu-latest]
33-
ghc: ["8.10.7", "9.0.2", "9.2.7", "9.4.4"]
33+
ghc: ["8.10.7", "9.0.2", "9.2.8", "9.4.8", "9.8.1"]
3434
include:
3535
- os: macos-latest
3636
ghc: "9.2.7"

bootstrap/cabal-bootstrap-gen.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ executable cabal-bootstrap-gen
1111
, aeson ^>=1.5.2.0 || ^>=2.0.3.0 || ^>=2.1.0.0
1212
, base ^>=4.12.0.0 || ^>=4.13.0.0 || ^>=4.14.0.0 || ^>=4.15.0.0 || ^>=4.16.0.0 || ^>=4.17.0.0
1313
, bytestring ^>=0.10.8.2 || ^>=0.11.0.0
14-
, Cabal ^>=3.2.0.0 || ^>=3.4.1.0 || ^>=3.6.3.0 || ^>=3.10.1.0
14+
, Cabal ^>=3.4.1.0 || ^>=3.6.3.0 || ^>=3.10.1.0
1515
, Cabal-syntax ^>=3.10.1.0
1616
, cabal-install-parsers ^>=0.3.0.1 || ^>=0.4.5 || ^>=0.6
1717
, cabal-plan ^>=0.7.0.0

bootstrap/generate_bootstrap_plans

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
nix build nixpkgs#jq.bin -o jq
2+
PATH+=:$PWD/jq-bin/bin
3+
4+
ghcs_nix="https://gitlab.haskell.org/bgamari/ghcs-nix/-/archive/master/ghcs-nix-master.tar.gz"
5+
6+
nix build -f "$ghcs_nix" ghc-8_10_7 -o boot_ghc
7+
8+
run() {
9+
local ver="$1"
10+
local drv="ghc-$ver"
11+
echo "$ver"
12+
nix build -f "$ghcs_nix" $drv
13+
(cd ../; rm -r dist-bootstrap; cabal --distdir=dist-bootstrap build --dry-run cabal-install:exe:cabal -w bootstrap/result/bin/ghc)
14+
jq --sort-keys < ../dist-newstyle/cache/plan.json > "plan-$ver.json"
15+
cabal run --with-ghc-pkg $PWD/boot_ghc/bin/ghc-pkg -w $PWD/boot_ghc/bin/ghc -v0 cabal-bootstrap-gen -- "plan-$ver.json" | jq --sort-keys | tee "linux-$(echo $ver | tr "_" ".").json"
16+
}
17+
18+
run "8_10_7"
19+
run "9_0_2"
20+
run "9_2_8"
21+
run "9_4_8"
22+
run "9_6_4"
23+
run "9_8_1"

0 commit comments

Comments
 (0)