File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 65
65
echo "package floskell" >> cabal.project
66
66
echo " ghc-options: -O0" >> cabal.project
67
67
68
- - if : ( runner.os == 'Linux' ) || ( runner.os == 'macOS' )
69
- name : (Linux,macOS) Platform config
68
+ - name : Retrieving `cabal.project` Hackage timestamp
70
69
run : |
71
70
TIMESTAMP="$(grep index-state cabal.project)"
72
71
echo "HACKAGE_TIMESTAMP=$TIMESTAMP" >> $GITHUB_ENV
@@ -83,18 +82,16 @@ jobs:
83
82
84
83
- run : cabal v2-update
85
84
86
- # NOTE: Freeze is for the caching
87
- - name : " Configuration freeze"
88
- run : cabal v2-freeze --enable-tests --enable-benchmarks
89
-
90
85
- name : Compiled deps cache
91
86
uses : actions/cache@v2
92
87
env :
93
88
cache-name : compiled-deps
94
89
with :
95
90
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 }}-
98
95
99
96
# Work around for filepath length limits in Windows
100
97
- if : runner.os == 'Windows'
You can’t perform that action at this time.
0 commit comments