File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 31
31
branches :
32
32
- master
33
33
34
+ env :
35
+ cabalBuild : " v2-build all --enable-tests --enable-benchmarks"
36
+
34
37
jobs :
35
38
36
39
pre_job :
@@ -128,6 +131,16 @@ jobs:
128
131
129
132
- run : cabal update
130
133
134
+ - name : Download all sources
135
+ run : |
136
+ cabal $cabalBuild --only-download
137
+
131
138
# repeating builds to workaround segfaults in windows and ghc-8.8.4
132
- - name : Build
133
- run : cabal build --only-dependencies || cabal build --only-dependencies || cabal build --only-dependencies
139
+ # This build agenda in not to have successful code,
140
+ # but to cache what can be cached, so step is fault tolerant & would always succseed.
141
+ # 2021-12-11: NOTE: Building all targets, since
142
+ # current Cabal does not allow `all --enable-tests --enable-benchmarks --only-dependencies`
143
+ - name : Build all targets; try 3 times
144
+ continue-on-error : true
145
+ run : |
146
+ cabal $cabalBuild || cabal $cabalBuild || cabal $cabalBuild
You can’t perform that action at this time.
0 commit comments