Skip to content

Commit 3ca3909

Browse files
authored
Merge pull request #536 from Shimuuar/fix-CI
Update CI
2 parents 05741f9 + c4caeb0 commit 3ca3909

File tree

1 file changed

+50
-36
lines changed

1 file changed

+50
-36
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,44 @@ jobs:
1818
matrix:
1919
include:
2020
# Linux
21-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "8.0.2" }
22-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "8.2.2" }
23-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "8.4.4" }
24-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "8.6.5" }
25-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "8.8.4" }
26-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "8.10.7" }
27-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "9.0.2" }
28-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "9.2.8" }
29-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "9.4.8" }
30-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "9.6.7" }
31-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "9.6.7",
21+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "8.0.2" }
22+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "8.2.2" }
23+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "8.4.4" }
24+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "8.6.5" }
25+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "8.8.4" }
26+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "8.10.7" }
27+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.0.2" }
28+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.2.8" }
29+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.4.8" }
30+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.6.7" }
31+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.6.7",
3232
flags: "-fUnsafeChecks -fInternalChecks" }
33-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "9.8" }
34-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "9.10" }
35-
- { cabal: "3.12", os: ubuntu-24.04, ghc: "9.12" }
33+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.8.4" }
34+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.10.2" }
35+
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.12.2" }
3636
# Win
37-
- { cabal: "3.12", os: windows-latest, ghc: "8.4.4" }
38-
# OOM when building tests
39-
# - { cabal: "3.6", os: windows-latest, ghc: "8.6.5" }
40-
# - { cabal: "3.6", os: windows-latest, ghc: "8.8.4" }
41-
# - { cabal: "3.6", os: windows-latest, ghc: "8.10.4" }
37+
- { cabal: "3.14", os: windows-latest, ghc: "8.4.4" }
38+
- { cabal: "3.14", os: windows-latest, ghc: "9.6.7" }
39+
- { cabal: "3.14", os: windows-latest, ghc: "9.8.4" }
40+
- { cabal: "3.14", os: windows-latest, ghc: "9.10.2" }
41+
- { cabal: "3.14", os: windows-latest, ghc: "9.12.2" }
4242
# Too flaky:
4343
# - { cabal: "3.6", os: windows-latest, ghc: "9.0.1" }
4444
# MacOS
45-
- { cabal: "3.12", os: macOS-13, ghc: "8.4.4" }
46-
- { cabal: "3.12", os: macOS-13, ghc: "8.6.5" }
47-
- { cabal: "3.12", os: macOS-13, ghc: "8.8.4" }
48-
- { cabal: "3.12", os: macOS-13, ghc: "8.10.7" }
49-
- { cabal: "3.12", os: macOS-13, ghc: "9.0.2" }
50-
- { cabal: "3.12", os: macOS-latest, ghc: "9.2.8" }
51-
- { cabal: "3.12", os: macOS-latest, ghc: "9.4.8" }
52-
- { cabal: "3.12", os: macOS-latest, ghc: "9.6.7" }
53-
- { cabal: "3.12", os: macOS-latest, ghc: "9.8" }
54-
- { cabal: "3.12", os: macOS-latest, ghc: "9.10" }
55-
- { cabal: "3.12", os: macOS-latest, ghc: "9.12" }
45+
- { cabal: "3.14", os: macOS-13, ghc: "8.4.4" }
46+
# Fails with linker errors
47+
# > ld: warning: -single_module is obsolete
48+
# > <command line>: can't load framework: Security (not found)
49+
# - { cabal: "3.14", os: macOS-13, ghc: "8.6.5" }
50+
# - { cabal: "3.14", os: macOS-13, ghc: "8.8.4" }
51+
- { cabal: "3.14", os: macOS-13, ghc: "8.10.7" }
52+
- { cabal: "3.14", os: macOS-13, ghc: "9.0.2" }
53+
- { cabal: "3.14", os: macOS-latest, ghc: "9.2.8" }
54+
- { cabal: "3.14", os: macOS-latest, ghc: "9.4.8" }
55+
- { cabal: "3.14", os: macOS-latest, ghc: "9.6.7" }
56+
- { cabal: "3.14", os: macOS-latest, ghc: "9.8.4" }
57+
- { cabal: "3.14", os: macOS-latest, ghc: "9.10.2" }
58+
- { cabal: "3.14", os: macOS-latest, ghc: "9.12.2" }
5659
fail-fast: false
5760

5861
steps:
@@ -87,28 +90,39 @@ jobs:
8790
- name: Make sdist
8891
run: |
8992
mkdir sdist
90-
cabal sdist vector -o sdist
93+
cabal sdist vector -o sdist
94+
cabal sdist vector-stream -o sdist
95+
cabal sdist vector-bench-papi -o sdist
9196
- name: Unpack
9297
run: |
9398
mkdir unpacked
94-
tar -C unpacked -xzf sdist/vector*tar.gz
95-
cd unpacked
99+
for NM in sdist/vector*tar.gz; do
100+
tar -C unpacked -xzf $NM
101+
done
102+
echo "packages:" >> unpacked/cabal.project
103+
echo " vector-*/*.cabal" >> unpacked/cabal.project
96104
# ----------------
97105
- name: cabal check
98106
run: |
99-
(cd vector-stream && cabal -vnormal check)
100-
(cd vector && cabal -vnormal check)
101-
# ----------------
107+
for nm in vector-*; do
108+
echo Checking $nm
109+
(cd "$nm" && cabal -vnormal check)
110+
done
111+
working-directory: unpacked/
112+
# ----------------
102113
- name: Build
103114
run: |
104115
echo FLAG_PAPI=$FLAG_PAPI
105116
cabal configure ${{ matrix.flags }} $FLAG_PAPI --haddock-all --enable-tests --enable-benchmarks --benchmark-option=-l
106117
cabal build all --write-ghc-environment-files=always
118+
working-directory: unpacked/
107119
# ----------------
108120
- name: Test
109121
run: |
110122
cabal test all
123+
working-directory: unpacked/
111124
# ----------------
112125
- name: Bench
113126
run: |
114127
cabal bench all
128+
working-directory: unpacked/

0 commit comments

Comments
 (0)