8484 # If you have not committed packcheck.sh in your repo at PACKCHECK
8585 # then it is automatically pulled from this URL.
8686 PACKCHECK_GITHUB_URL : " https://raw.githubusercontent.com/composewell/packcheck"
87- PACKCHECK_GITHUB_COMMIT : " 8a8e818e51dbadb96628d723eaa42a4e95df9106 "
87+ PACKCHECK_GITHUB_COMMIT : " dd6862df527f317fd4987afa523fba3f4fde7e19 "
8888
8989 # ------------------------------------------------------------------------
9090 # Final build variables
@@ -102,7 +102,7 @@ jobs:
102102 runs-on : ${{ matrix.runner }}
103103 continue-on-error : ${{ matrix.ignore_error }}
104104 strategy :
105- fail-fast : true
105+ fail-fast : false
106106 matrix :
107107
108108 # The order of jobs is important to optimize fail-fast.
@@ -129,26 +129,26 @@ jobs:
129129 # it.
130130 include :
131131
132- - name : ci
133- runner : ubuntu-latest
134- command : cabal
135- ghc_version : head
136- # The URL may change, to find a working URL go to https://gitlab.haskell.org/ghc/ghc/-/jobs/
137- # Find a debian10/11/12 job, click on a passed/failed status, at the
138- # end of the output you will find the tar.xz name, put that tar
139- # name after "raw/", and put the job name after "job=".
140- # Also see https://github.com/mpickering/ghc-artefact-nix/blob/master/gitlab-artifact.nix
141- #
142- # May also use ghcup for installing ghc head version, use the
143- # version "LatestNightly", and the following config:
144- # ghcup config add-release-channel https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml
145- # WARNING! cannot use # comments inside pack_options.
146- pack_options : >-
147- GHCUP_GHC_OPTIONS="-u https://gitlab.haskell.org/ghc/ghc/-/jobs/artifacts/master/raw/ghc-x86_64-linux-deb10-int_native-validate.tar.xz?job=x86_64-linux-deb10-int_native-validate"
148- CABAL_PROJECT=cabal.project.ghc-head
149- CABAL_BUILD_OPTIONS="--flag limit-build-mem"
150- DISABLE_SDIST_BUILD="y"
151- ignore_error : true
132+ # - name: ci
133+ # runner: ubuntu-latest
134+ # command: cabal
135+ # ghc_version: head
136+ # # The URL may change, to find a working URL go to https://gitlab.haskell.org/ghc/ghc/-/jobs/
137+ # # Find a debian10/11/12 job, click on a passed/failed status, at the
138+ # # end of the output you will find the tar.xz name, put that tar
139+ # # name after "raw/", and put the job name after "job=".
140+ # # Also see https://github.com/mpickering/ghc-artefact-nix/blob/master/gitlab-artifact.nix
141+ # #
142+ # # May also use ghcup for installing ghc head version, use the
143+ # # version "LatestNightly", and the following config:
144+ # # ghcup config add-release-channel https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml
145+ # # WARNING! cannot use # comments inside pack_options.
146+ # pack_options: >-
147+ # GHCUP_GHC_OPTIONS="-u https://gitlab.haskell.org/ghc/ghc/-/jobs/artifacts/master/raw/ghc-x86_64-linux-deb10-int_native-validate.tar.xz?job=x86_64-linux-deb10-int_native-validate"
148+ # CABAL_PROJECT=cabal.project.ghc-head
149+ # CABAL_BUILD_OPTIONS="--flag limit-build-mem"
150+ # DISABLE_SDIST_BUILD="y"
151+ # ignore_error: true
152152
153153 - name : streamly-core-sdist
154154 runner : ubuntu-latest
@@ -167,6 +167,7 @@ jobs:
167167 CABAL_BUILD_OPTIONS="--flag debug --flag -opt"
168168 DISABLE_SDIST_BUILD="y"
169169 DISABLE_DOCS="y"
170+ DISABLE_BENCH="y"
170171 ignore_error : false
171172
172173 # Takes too long, so bench is disabled
@@ -195,6 +196,8 @@ jobs:
195196 CABAL_PROJECT=cabal.project
196197 CABAL_BUILD_OPTIONS="--flag limit-build-mem --flag fusion-plugin"
197198 DISABLE_SDIST_BUILD="y"
199+ DISABLE_DOCS="y"
200+ DISABLE_BENCH="y"
198201 ignore_error : false
199202
200203 # Note: use linux for warning build for convenient dev testing
@@ -207,6 +210,7 @@ jobs:
207210 CABAL_PROJECT=cabal.project.Werror
208211 CABAL_BUILD_OPTIONS="--flag limit-build-mem"
209212 DISABLE_SDIST_BUILD="y"
213+ DISABLE_BENCH="y"
210214 ignore_error : false
211215
212216 - name : fusion-inspection
@@ -218,17 +222,19 @@ jobs:
218222 CABAL_PROJECT=cabal.project
219223 CABAL_BUILD_OPTIONS="--flag fusion-plugin --flag inspection"
220224 DISABLE_SDIST_BUILD="y"
225+ DISABLE_DOCS="y"
221226 ignore_error : false
222227
223- - name : fusion-inspection
228+ - name : ci
224229 runner : ubuntu-latest
225230 command : cabal
226231 ghc_version : 9.8.4
227232 # WARNING! cannot use # comments inside pack_options.
228233 pack_options : >-
229234 CABAL_PROJECT=cabal.project
230- CABAL_BUILD_OPTIONS="--flag fusion-plugin --flag inspection"
231235 DISABLE_SDIST_BUILD="y"
236+ DISABLE_DOCS="y"
237+ DISABLE_BENCH="y"
232238 ignore_error : false
233239
234240 - name : streamly-sdist
@@ -238,7 +244,6 @@ jobs:
238244 # WARNING! cannot use # comments inside pack_options.
239245 pack_options : >-
240246 CABAL_PROJECT=cabal.project.streamly
241- DISABLE_SDIST_BUILD="y"
242247 ignore_error : true
243248
244249 - name : lstat-readdir
@@ -250,17 +255,21 @@ jobs:
250255 CABAL_PROJECT=cabal.project
251256 CABAL_BUILD_OPTIONS="--flag force-lstat-readdir"
252257 DISABLE_SDIST_BUILD="y"
258+ DISABLE_DOCS="y"
259+ DISABLE_BENCH="y"
253260 ignore_error : false
254261
255- - name : instrumented
262+ - name : ci
256263 runner : ubuntu-latest
257264 command : cabal
258265 ghc_version : 9.2.8
259266 # WARNING! cannot use # comments inside pack_options.
267+ # GHCUP_GHC_OPTIONS="-u https://s3.ap-south-1.amazonaws.com/downloads.portal.composewell.com/ghc/ghc-9.2.8-x86_64-unknown-linux.tar.xz"
260268 pack_options : >-
261269 CABAL_PROJECT=cabal.project
262- GHCUP_GHC_OPTIONS="-u https://s3.ap-south-1.amazonaws.com/downloads.portal.composewell.com/ghc/ghc-9.2.8-x86_64-unknown-linux.tar.xz"
263270 DISABLE_SDIST_BUILD="y"
271+ DISABLE_DOCS="y"
272+ DISABLE_BENCH="y"
264273 ignore_error : false
265274
266275 - name : unoptimized
@@ -272,6 +281,7 @@ jobs:
272281 CABAL_PROJECT=cabal.project
273282 DISABLE_SDIST_BUILD="y"
274283 DISABLE_DOCS="y"
284+ DISABLE_BENCH="y"
275285 DISABLE_DIST_CHECKS="y"
276286 CABAL_BUILD_OPTIONS="--flags \"-opt\""
277287 ignore_error : false
@@ -331,9 +341,8 @@ jobs:
331341 with :
332342 # ghcup: ~/.ghcup (macOS), /usr/local/.ghcup (Linux)
333343 path : |
334- /usr/local/.ghcup
335344 ~/.ghcup
336- key : ${{ matrix.runner }}-${{ env.GHCUP_VERSION }}-${{ matrix.ghc_version }}-v1
345+ key : ${{ matrix.runner }}-ghcup- ${{ env.GHCUP_VERSION }}-${{ matrix.ghc_version }}-v1
337346
338347 # XXX If we want to invalidate the cache on resolver change we
339348 # should use a separate cache for stack as it should be keyed on
@@ -408,10 +417,18 @@ jobs:
408417 rm cabal.project
409418 cd "$SUBDIR"
410419 fi
411- PATH_VAR=/bin:/usr/bin
412420 case "$(uname)" in
421+ Linux)
422+ PATH_VAR=/bin
423+ # On Linux it defaults to /usr/local, during cache restore
424+ # tar is unable to change permissions and restore fails.
425+ export GHCUP_INSTALL_BASE_PREFIX=$HOME
426+ ;;
427+ Darwin)
428+ PATH_VAR=/bin:/usr/bin
429+ ;;
413430 CYGWIN*|MINGW*|MSYS*)
414- PATH_VAR="$PATH_VAR :/c/Program Files/7-Zip:/mingw64/bin"
431+ PATH_VAR="/bin :/c/Program Files/7-Zip:/mingw64/bin"
415432 ;;
416433 esac
417434 # Use "bash -c" instead of invoking directly to preserve quoted
0 commit comments