|
1 | 1 | # This GitHub workflow config has been generated by a script via
|
2 | 2 | #
|
3 |
| -# haskell-ci 'github' 'cabal.project' |
| 3 | +# haskell-ci 'github' 'cabal.project' '--config' 'cabal.haskell-ci' |
4 | 4 | #
|
5 | 5 | # To regenerate the script (for example after adjusting tested-with) run
|
6 | 6 | #
|
|
10 | 10 | #
|
11 | 11 | # version: 0.17.20240109
|
12 | 12 | #
|
13 |
| -# REGENDATA ("0.17.20240109",["github","cabal.project"]) |
| 13 | +# REGENDATA ("0.17.20240109",["github","cabal.project","--config","cabal.haskell-ci"]) |
14 | 14 | #
|
15 | 15 | name: Haskell-CI
|
16 | 16 | on:
|
|
48 | 48 | compilerVersion: 9.2.8
|
49 | 49 | setup-method: ghcup
|
50 | 50 | allow-failure: false
|
| 51 | + - compiler: ghc-8.10.7 |
| 52 | + compilerKind: ghc |
| 53 | + compilerVersion: 8.10.7 |
| 54 | + setup-method: ghcup |
| 55 | + allow-failure: false |
51 | 56 | fail-fast: false
|
52 | 57 | steps:
|
53 | 58 | - name: apt
|
@@ -165,7 +170,7 @@ jobs:
|
165 | 170 | source-repository-package
|
166 | 171 | type: git
|
167 | 172 | location: https://github.com/FinleyMcIlwaine/bos-snappy
|
168 |
| - tag: 373be55746d8b3c75e6e8f0a4d1dfebf3e3ad649 |
| 173 | + tag: b00b103a8c522aa3adde7e922537ab6b74f73eb0 |
169 | 174 | EOF
|
170 | 175 | $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(snappy-c)$/; }' >> cabal.project.local
|
171 | 176 | cat cabal.project
|
@@ -204,6 +209,15 @@ jobs:
|
204 | 209 | run: |
|
205 | 210 | rm -f cabal.project.local
|
206 | 211 | $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
|
| 212 | + - name: prepare for constraint sets |
| 213 | + run: | |
| 214 | + rm -f cabal.project.local |
| 215 | + - name: constraint set snappy |
| 216 | + run: | |
| 217 | + if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='bytestring >=0.11' all --dry-run ; fi |
| 218 | + if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cabal-plan topo | sort ; fi |
| 219 | + if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='bytestring >=0.11' --dependencies-only -j2 all ; fi |
| 220 | + if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='bytestring >=0.11' all ; fi |
207 | 221 | - name: save cache
|
208 | 222 | uses: actions/cache/save@v3
|
209 | 223 | if: always()
|
|
0 commit comments