Skip to content

Commit c543dd9

Browse files
committed
CI: cache-deps: GHC 8.6.5 build does not handle all deps at once
1 parent 04ef418 commit c543dd9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/cache-deps.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,20 @@ jobs:
103103
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}-
104104
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
105105
106-
- if: runner.os != 'Windows'
106+
- if: ( runner.os != 'Windows' ) && ( matrix.ghc != '8.6.5' )
107107
name: Build
108108
run: cabal v2-build --enable-tests --enable-benchmarks --only-dependencies
109109

110110
# repeating builds to workaround segfaults in windows and ghc-8.8.4
111111
# separate build steps for platforms are needed because if Windows build aborts once - it returns the error code but despite how it is on other platforms - repeated compilation may succeed.
112-
- if: runner.os == 'Windows'
112+
- if: runner.os == 'Windows' && ( matrix.ghc != '8.6.5' )
113113
name: (Windows) Restart build 3 times
114114
run: cabal v2-build --enable-tests --enable-benchmarks --only-dependencies || cabal v2-build --enable-tests --enable-benchmarks --only-dependencies || cabal v2-build --enable-tests --enable-benchmarks --only-dependencies
115+
116+
- if: ( runner.os != 'Windows' ) && ( matrix.ghc == '8.6.5' )
117+
name: Build
118+
run: cabal v2-build --only-dependencies
119+
120+
- if: ( runner.os == 'Windows' ) && ( matrix.ghc == '8.6.5' )
121+
name: Build
122+
run: cabal v2-build --only-dependencies || cabal v2-build --only-dependencies || cabal v2-build --only-dependencies

0 commit comments

Comments
 (0)