Skip to content

Commit 036165c

Browse files
committed
Regenerate haskell-ci
1 parent 593e4e9 commit 036165c

File tree

1 file changed

+36
-38
lines changed

1 file changed

+36
-38
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/andreasabel/haskell-ci
1010
#
11-
# version: 0.17.20240127
11+
# version: 0.18.0.20240225
1212
#
13-
# REGENDATA ("0.17.20240127",["github","cabal.project"])
13+
# REGENDATA ("0.18.0.20240225",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -37,9 +37,9 @@ jobs:
3737
compilerVersion: 9.8.1
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.6.3
40+
- compiler: ghc-9.6.4
4141
compilerKind: ghc
42-
compilerVersion: 9.6.3
42+
compilerVersion: 9.6.4
4343
setup-method: ghcup
4444
allow-failure: false
4545
- compiler: ghc-9.4.8
@@ -77,16 +77,6 @@ jobs:
7777
compilerVersion: 8.4.4
7878
setup-method: ghcup
7979
allow-failure: false
80-
- compiler: ghc-8.2.2
81-
compilerKind: ghc
82-
compilerVersion: 8.2.2
83-
setup-method: ghcup
84-
allow-failure: false
85-
- compiler: ghc-8.0.2
86-
compilerKind: ghc
87-
compilerVersion: 8.0.2
88-
setup-method: ghcup
89-
allow-failure: false
9080
fail-fast: false
9181
steps:
9282
- name: apt
@@ -185,6 +175,7 @@ jobs:
185175
echo "packages: $GITHUB_WORKSPACE/source/hackage-root-tool" >> cabal.project
186176
echo "packages: $GITHUB_WORKSPACE/source/hackage-repo-tool" >> cabal.project
187177
echo "packages: $GITHUB_WORKSPACE/source/hackage-security-HTTP" >> cabal.project
178+
echo "packages: $GITHUB_WORKSPACE/source/precompute-fileinfo" >> cabal.project
188179
cat cabal.project
189180
- name: sdist
190181
run: |
@@ -210,6 +201,8 @@ jobs:
210201
echo "PKGDIR_hackage_repo_tool=${PKGDIR_hackage_repo_tool}" >> "$GITHUB_ENV"
211202
PKGDIR_hackage_security_HTTP="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/hackage-security-HTTP-[0-9.]*')"
212203
echo "PKGDIR_hackage_security_HTTP=${PKGDIR_hackage_security_HTTP}" >> "$GITHUB_ENV"
204+
PKGDIR_precompute_fileinfo="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/precompute-fileinfo-[0-9.]*')"
205+
echo "PKGDIR_precompute_fileinfo=${PKGDIR_precompute_fileinfo}" >> "$GITHUB_ENV"
213206
rm -f cabal.project cabal.project.local
214207
touch cabal.project
215208
touch cabal.project.local
@@ -220,25 +213,28 @@ jobs:
220213
echo "packages: ${PKGDIR_hackage_root_tool}" >> cabal.project
221214
echo "packages: ${PKGDIR_hackage_repo_tool}" >> cabal.project
222215
echo "packages: ${PKGDIR_hackage_security_HTTP}" >> cabal.project
223-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package hackage-security" >> cabal.project ; fi
224-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
225-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package hackage-security-http-client" >> cabal.project ; fi
226-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
227-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package example-client" >> cabal.project ; fi
228-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
229-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package hackage-security-curl" >> cabal.project ; fi
230-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
231-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package hackage-root-tool" >> cabal.project ; fi
232-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
233-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package hackage-repo-tool" >> cabal.project ; fi
234-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
235-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package hackage-security-HTTP" >> cabal.project ; fi
236-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
216+
echo "packages: ${PKGDIR_precompute_fileinfo}" >> cabal.project
217+
echo "package hackage-security" >> cabal.project
218+
echo " ghc-options: -Werror=missing-methods" >> cabal.project
219+
echo "package hackage-security-http-client" >> cabal.project
220+
echo " ghc-options: -Werror=missing-methods" >> cabal.project
221+
echo "package example-client" >> cabal.project
222+
echo " ghc-options: -Werror=missing-methods" >> cabal.project
223+
echo "package hackage-security-curl" >> cabal.project
224+
echo " ghc-options: -Werror=missing-methods" >> cabal.project
225+
echo "package hackage-root-tool" >> cabal.project
226+
echo " ghc-options: -Werror=missing-methods" >> cabal.project
227+
echo "package hackage-repo-tool" >> cabal.project
228+
echo " ghc-options: -Werror=missing-methods" >> cabal.project
229+
echo "package hackage-security-HTTP" >> cabal.project
230+
echo " ghc-options: -Werror=missing-methods" >> cabal.project
231+
echo "package precompute-fileinfo" >> cabal.project
232+
echo " ghc-options: -Werror=missing-methods" >> cabal.project
237233
cat >> cabal.project <<EOF
238234
constraints: base-compat >= 0.12.2
239235
allow-newer: containers
240236
EOF
241-
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(example-client|hackage-repo-tool|hackage-root-tool|hackage-security|hackage-security-HTTP|hackage-security-curl|hackage-security-http-client)$/; }' >> cabal.project.local
237+
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(example-client|hackage-repo-tool|hackage-root-tool|hackage-security|hackage-security-HTTP|hackage-security-curl|hackage-security-http-client|precompute-fileinfo)$/; }' >> cabal.project.local
242238
cat cabal.project
243239
cat cabal.project.local
244240
- name: dump install plan
@@ -280,6 +276,8 @@ jobs:
280276
${CABAL} -vnormal check
281277
cd ${PKGDIR_hackage_security_HTTP} || false
282278
${CABAL} -vnormal check
279+
cd ${PKGDIR_precompute_fileinfo} || false
280+
${CABAL} -vnormal check
283281
- name: haddock
284282
run: |
285283
if [ $((HCNUMVER >= 80600)) -ne 0 ] ; then $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all ; fi
@@ -292,17 +290,17 @@ jobs:
292290
rm -f cabal.project.local
293291
- name: constraint set containers-0.7
294292
run: |
295-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all --dry-run ; fi
296-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then cabal-plan topo | sort ; fi
297-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' --dependencies-only -j2 all ; fi
298-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
299-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
293+
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all --dry-run ; fi
294+
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then cabal-plan topo | sort ; fi
295+
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' --dependencies-only -j2 all ; fi
296+
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
297+
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
300298
- name: constraint set no-lukko
301299
run: |
302-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='hackage-security -lukko' all --dry-run ; fi
303-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then cabal-plan topo | sort ; fi
304-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='hackage-security -lukko' --dependencies-only -j2 all ; fi
305-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='hackage-security -lukko' all ; fi
300+
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='hackage-security -lukko' all --dry-run
301+
cabal-plan topo | sort
302+
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='hackage-security -lukko' --dependencies-only -j2 all
303+
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='hackage-security -lukko' all
306304
- name: save cache
307305
uses: actions/cache/save@v4
308306
if: always()

0 commit comments

Comments
 (0)