mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-15 03:55:45 -07:00
ci: Prevent ~/.stack/pantry cache from being empty
When building with an LTS version that has exactly the dependencies we
need (X11-1.9.2), stack doesn't need to download the Hackage index. If
GitHub Actions cache locking chooses this job as the one that writes the
cache, then the "stack-pantry-Linux" cache entry stays empty, possibly
forever.
Force Hackage index update to prevent this from happening.
Related: d1a4820b55
This commit is contained in:
6
.github/workflows/stack.yml
vendored
6
.github/workflows/stack.yml
vendored
@@ -66,6 +66,12 @@ jobs:
|
|||||||
stack-${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}-
|
stack-${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}-
|
||||||
stack-${{ runner.os }}-${{ matrix.resolver }}-
|
stack-${{ runner.os }}-${{ matrix.resolver }}-
|
||||||
|
|
||||||
|
- name: Update hackage index
|
||||||
|
# always update index to prevent the shared ~/.stack/pantry cache from being empty
|
||||||
|
run: |
|
||||||
|
set -ex
|
||||||
|
stack update
|
||||||
|
|
||||||
- name: Build and test
|
- name: Build and test
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
set -ex
|
||||||
|
Reference in New Issue
Block a user