@@ -148,7 +148,7 @@ jobs:
148148 run : |
149149 $CABAL v2-update -v
150150 - name : cache (tools)
151- uses : actions/cache@v2
151+ uses : actions/cache/restore@v3
152152 with :
153153 key : ${{ runner.os }}-${{ matrix.compiler }}-tools-ddfe230f
154154 path : ~/.haskell-ci-tools
@@ -174,8 +174,14 @@ jobs:
174174 run : |
175175 if [ $((HCNUMVER < 90000)) -ne 0 ] ; then $CABAL --store-dir=$HOME/.haskell-ci-tools/store v2-install $ARG_COMPILER --ignore-project -j2 doctest --constraint='doctest ^>=0.20' ; fi
176176 if [ $((HCNUMVER < 90000)) -ne 0 ] ; then doctest --version ; fi
177+ - name : save cache (tools)
178+ uses : actions/cache/save@v3
179+ if : always()
180+ with :
181+ key : ${{ runner.os }}-${{ matrix.compiler }}-tools-ddfe230f
182+ path : ~/.haskell-ci-tools
177183 - name : checkout
178- uses : actions/checkout@v2
184+ uses : actions/checkout@v3
179185 with :
180186 path : source
181187 - name : initial cabal.project for sdist
@@ -226,8 +232,8 @@ jobs:
226232 run : |
227233 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
228234 cabal-plan
229- - name : cache
230- uses : actions/cache@v2
235+ - name : restore cache
236+ uses : actions/cache/restore@v3
231237 with :
232238 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
233239 path : ~/.cabal/store
@@ -277,3 +283,9 @@ jobs:
277283 if [ $((HCNUMVER < 80400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='deepseq ==1.4.*' --constraint='binary installed' --dependencies-only -j2 all ; fi
278284 if [ $((HCNUMVER < 80400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='deepseq ==1.4.*' --constraint='binary installed' all ; fi
279285 if [ $((HCNUMVER < 80400)) -ne 0 ] ; then $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK --disable-tests --disable-benchmarks --constraint='deepseq ==1.4.*' --constraint='binary installed' all ; fi
286+ - name : save cache
287+ uses : actions/cache/save@v3
288+ if : always()
289+ with :
290+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
291+ path : ~/.cabal/store
0 commit comments