Skip to content

Commit a241891

Browse files
committed
WIP
1 parent c4109b7 commit a241891

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/cache-deps.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ jobs:
6565
echo "package floskell" >> cabal.project
6666
echo " ghc-options: -O0" >> cabal.project
6767
68-
- if: ( runner.os == 'Linux' ) || ( runner.os == 'macOS' )
69-
name: (Linux,macOS) Platform config
68+
- name: Retrieving `cabal.project` Hackage timestamp
7069
run: |
7170
TIMESTAMP="$(grep index-state cabal.project)"
7271
echo "HACKAGE_TIMESTAMP=$TIMESTAMP" >> $GITHUB_ENV
@@ -83,18 +82,16 @@ jobs:
8382

8483
- run: cabal v2-update
8584

86-
# NOTE: Freeze is for the caching
87-
- name: "Configuration freeze"
88-
run: cabal v2-freeze --enable-tests --enable-benchmarks
89-
9085
- name: Compiled deps cache
9186
uses: actions/cache@v2
9287
env:
9388
cache-name: compiled-deps
9489
with:
9590
path: ${{ steps.HaskEnvSetup.outputs.cabal-store }}
96-
key: ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
97-
restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
91+
key: ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}-${{ hashFiles('cabal.project') }}
92+
restore-keys: |
93+
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}-
94+
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
9895
9996
# Work around for filepath length limits in Windows
10097
- if: runner.os == 'Windows'

0 commit comments

Comments
 (0)