Skip to content

Commit d564ceb

Browse files
committed
Move cabal update for flags
1 parent 3602be3 commit d564ceb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/flags.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ jobs:
8585
INDEX_STATE1=$(echo "$INDEX_STATE_ENTRY" | cut -d' ' -f2 | tr ':' '-')
8686
echo "INDEX_STATE=$INDEX_STATE1" >> $GITHUB_ENV
8787
88+
# To ensure we get the lastest hackage index and not relying on haskell action logic
89+
- run: cabal update
90+
8891
- name: Form the package list ('cabal.project.freeze')
8992
id: compute-cache-key
9093
run: |
@@ -119,10 +122,6 @@ jobs:
119122
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
120123
${{ env.cache-name }}-${{ runner.os }}-
121124
122-
# To ensure we get the lastest hackage index and not relying on haskell action logic
123-
- if: steps.compiled-deps.outputs.cache-hit != 'true'
124-
run: cabal update
125-
126125
- name: Build `hls-graph` with flags
127126
run: cabal v2-build hls-graph --flags="pedantic embed-files stm-stats"
128127

0 commit comments

Comments
 (0)