diff --git a/.github/workflows/stack.yml b/.github/workflows/stack.yml index 9d8f6391..9f7cb208 100644 --- a/.github/workflows/stack.yml +++ b/.github/workflows/stack.yml @@ -77,6 +77,12 @@ jobs: stack-${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles(matrix.yaml) }}- 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 run: | set -ex