|
44 | 44 | CHERE_INVOKING: 1 |
45 | 45 | # dynamic |
46 | 46 | DYNAMIC: ${{ inputs.dynamic }} |
47 | | - # stage0 cabal cache |
48 | | - CABAL_CACHE_PATH: _build/cabal/bin |
49 | 47 |
|
50 | 48 | jobs: |
51 | 49 | tool-output: |
@@ -151,12 +149,6 @@ jobs: |
151 | 149 | ./emsdk install ${{ env.EMSDK_VERSION }} |
152 | 150 | ./emsdk activate ${{ env.EMSDK_VERSION }} |
153 | 151 |
|
154 | | - - name: Cache stage0 cabal binary |
155 | | - uses: actions/cache@v4 |
156 | | - with: |
157 | | - path: ${{ env.CABAL_CACHE_PATH }} |
158 | | - key: cabal-v1-${{ matrix.platform.ARTIFACT }}-${{ hashFiles('cabal.project.stage0') }} |
159 | | - |
160 | 152 | - name: Run build |
161 | 153 | run: &build | |
162 | 154 | set -eux |
@@ -222,12 +214,6 @@ jobs: |
222 | 214 | ref: ${{ matrix.branch }} |
223 | 215 | submodules: recursive |
224 | 216 |
|
225 | | - - name: Cache stage0 cabal binary |
226 | | - uses: actions/cache@v4 |
227 | | - with: |
228 | | - path: ${{ env.CABAL_CACHE_PATH }} |
229 | | - key: cabal-v1-${{ matrix.platform.ARTIFACT }}-${{ hashFiles('cabal.project.stage0') }} |
230 | | - |
231 | 217 | # debian 11 ships with make 4.3, but we need 4.4 |
232 | 218 | - if: matrix.platform.ARTIFACT == 'aarch64-linux-deb11' |
233 | 219 | uses: docker://arm64v8/debian:11 |
@@ -318,12 +304,6 @@ jobs: |
318 | 304 | echo "/usr/local/opt/make/libexec/gnubin" >> $GITHUB_PATH |
319 | 305 | echo "/usr/local/opt/libtool/libexec/gnubin" >> $GITHUB_PATH |
320 | 306 |
|
321 | | - - name: Cache stage0 cabal binary |
322 | | - uses: actions/cache@v4 |
323 | | - with: |
324 | | - path: ${{ env.CABAL_CACHE_PATH }} |
325 | | - key: cabal-v1-${{ env.ARTIFACT }}-${{ hashFiles('cabal.project.stage0') }} |
326 | | - |
327 | 307 | - name: Install emscripten |
328 | 308 | run : *emscripten |
329 | 309 |
|
@@ -373,12 +353,6 @@ jobs: |
373 | 353 | echo "/opt/homebrew/opt/make/libexec/gnubin" >> $GITHUB_PATH |
374 | 354 | echo "/opt/homebrew/opt/libtool/libexec/gnubin" >> $GITHUB_PATH |
375 | 355 |
|
376 | | - - name: Cache stage0 cabal binary |
377 | | - uses: actions/cache@v4 |
378 | | - with: |
379 | | - path: ${{ env.CABAL_CACHE_PATH }} |
380 | | - key: cabal-v1-${{ env.ARTIFACT }}-${{ hashFiles('cabal.project.stage0') }} |
381 | | - |
382 | 356 | - name: Run build |
383 | 357 | run: *build |
384 | 358 |
|
@@ -427,12 +401,6 @@ jobs: |
427 | 401 | run: ghcup --no-verbose install ghc --set --install-targets "${{ env.GHC_TARGETS }}" "${{ env.GHC_VERSION }}" |
428 | 402 | shell: pwsh |
429 | 403 |
|
430 | | - - name: Cache stage0 cabal binary |
431 | | - uses: actions/cache@v4 |
432 | | - with: |
433 | | - path: ${{ env.CABAL_CACHE_PATH }} |
434 | | - key: cabal-v1-${{ env.ARTIFACT }}-${{ hashFiles('cabal.project.stage0') }} |
435 | | - |
436 | 404 | - name: Run build |
437 | 405 | run: *build |
438 | 406 | env: |
@@ -505,22 +473,12 @@ jobs: |
505 | 473 | run : | |
506 | 474 | sudo pkg install -y emscripten |
507 | 475 |
|
508 | | - # Self-hosted runner: clean stale state but keep _build/cabal/ for caching. |
509 | | - # distclean includes clean (stage1/2/3 + config), but not clean-cabal. |
510 | | - - name: Clean stale build state |
511 | | - run: gmake distclean |
512 | | - |
513 | | - - name: Cache stage0 cabal binary |
514 | | - uses: actions/cache@v4 |
515 | | - with: |
516 | | - path: ${{ env.CABAL_CACHE_PATH }} |
517 | | - key: cabal-v1-${{ env.ARTIFACT }}-${{ hashFiles('cabal.project.stage0') }} |
518 | | - |
519 | 476 | - name: Run build |
520 | 477 | run: | |
521 | 478 | which ghc |
522 | 479 | ghc --info |
523 | 480 | cabal update |
| 481 | + gmake clean clean-cabal distclean |
524 | 482 | gmake _build/dist/haskell-toolchain.tar.gz _build/dist/ghc.tar.gz _build/dist/cabal.tar.gz _build/dist/tests.tar.gz _build/dist/ghc-javascript-unknown-ghcjs.tar.gz |
525 | 483 | cd _build/dist |
526 | 484 | mv ghc.tar.gz ghc-$(bin/ghc --numeric-version)-${{ env.ARTIFACT }}.tar.gz |
|
0 commit comments