File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 85
85
INDEX_STATE1=$(echo "$INDEX_STATE_ENTRY" | cut -d' ' -f2 | tr ':' '-')
86
86
echo "INDEX_STATE=$INDEX_STATE1" >> $GITHUB_ENV
87
87
88
+ # To ensure we get the lastest hackage index and not relying on haskell action logic
89
+ - run : cabal update
90
+
88
91
- name : Form the package list ('cabal.project.freeze')
89
92
id : compute-cache-key
90
93
run : |
@@ -121,9 +124,6 @@ jobs:
121
124
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
122
125
${{ env.cache-name }}-${{ runner.os }}-
123
126
124
- # To ensure we get the lastest hackage index and not relying on haskell action logic
125
- - run : cabal update
126
-
127
127
# max-backjumps is increased as a temporary solution
128
128
# for dependency resolution failure
129
129
- run : cabal configure --enable-benchmarks --max-backjumps 12000
Original file line number Diff line number Diff line change @@ -142,6 +142,9 @@ jobs:
142
142
INDEX_STATE1=$(echo "$INDEX_STATE_ENTRY" | cut -d' ' -f2 | tr ':' '-')
143
143
echo "INDEX_STATE=$INDEX_STATE1" >> $GITHUB_ENV
144
144
145
+ # To ensure we get the lastest hackage index and not relying on haskell action logic
146
+ - run : cabal update
147
+
145
148
- name : Form the package list ('cabal.project.freeze')
146
149
id : compute-cache-key
147
150
run : |
@@ -183,10 +186,6 @@ jobs:
183
186
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
184
187
${{ env.cache-name }}-${{ runner.os }}-
185
188
186
- # To ensure we get the lastest hackage index and not relying on haskell action logic
187
- - if : steps.compiled-deps.outputs.cache-hit != 'true'
188
- run : cabal update
189
-
190
189
- if : steps.compiled-deps.outputs.cache-hit != 'true' && runner.os == 'Linux' && matrix.ghc == '8.10.7'
191
190
name : Download sources for bench
192
191
# Downloaded separately, to match the tested work/PR workflow guarantees
Original file line number Diff line number Diff line change @@ -146,6 +146,9 @@ jobs:
146
146
INDEX_STATE1=$(echo "$INDEX_STATE_ENTRY" | cut -d' ' -f2 | tr ':' '-')
147
147
echo "INDEX_STATE=$INDEX_STATE1" >> $GITHUB_ENV
148
148
149
+ # To ensure we get the lastest hackage index and not relying on haskell action logic
150
+ - run : cabal update
151
+
149
152
- name : Compute the cache key
150
153
id : compute-cache-key
151
154
run : |
@@ -182,10 +185,6 @@ jobs:
182
185
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
183
186
${{ env.cache-name }}-${{ runner.os }}-
184
187
185
- # To ensure we get the lastest hackage index and not relying on haskell action logic
186
- - if : steps.compiled-deps.outputs.cache-hit != 'true'
187
- run : cabal update
188
-
189
188
# repeating builds to workaround segfaults in windows and ghc-8.8.4
190
189
- name : Build
191
190
run : cabal build || cabal build || cabal build
You can’t perform that action at this time.
0 commit comments