File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ jobs:
130
130
restore-keys : ${{ env.cache-name }}-
131
131
132
132
- name : Compiled deps cache
133
+ id : compiled-deps
133
134
uses : actions/cache@v2
134
135
env :
135
136
cache-name : compiled-deps
@@ -141,9 +142,12 @@ jobs:
141
142
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
142
143
${{ env.cache-name }}-${{ runner.os }}-
143
144
144
- - run : cabal update
145
+ - if : (! steps.compiled-deps.outputs.cache-hit)
146
+ run : |
147
+ cabal update
145
148
146
- - name : Download all sources
149
+ - if : (! steps.compiled-deps.outputs.cache-hit)
150
+ name : Download all sources
147
151
run : |
148
152
cabal $cabalBuild --only-download
149
153
@@ -152,7 +156,8 @@ jobs:
152
156
# but to cache what can be cached, so step is fault tolerant & would always succseed.
153
157
# 2021-12-11: NOTE: Building all targets, since
154
158
# current Cabal does not allow `all --enable-tests --enable-benchmarks --only-dependencies`
155
- - name : Build all targets; try 3 times
159
+ - if : (! steps.compiled-deps.outputs.cache-hit)
160
+ name : Build all targets; try 3 times
156
161
continue-on-error : true
157
162
run : |
158
163
cabal $cabalBuild || cabal $cabalBuild || cabal $cabalBuild
You can’t perform that action at this time.
0 commit comments