File tree 1 file changed +10
-7
lines changed 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ jobs:
28
28
ghc-version : ${{ matrix.ghc }}
29
29
cabal-version : ' 3.2'
30
30
31
- # - name: Cache Cabal
32
-
33
- # with:
34
- # path: ~/.cabal
35
- # key: ${{ runner.OS }}-${{ matrix.ghc }}-cabal-0
31
+ - name : Cache Cabal
32
+
33
+ with :
34
+ path : ~/.cabal
35
+ key : ${{ runner.OS }}-${{ matrix.ghc }}-${{ hashFiles('**/*. cabal') }}
36
36
37
37
- name : Shorten binary names
38
38
shell : bash
@@ -51,13 +51,16 @@ jobs:
51
51
echo '::set-env name=WIN_CABAL_ARGS::-j1'
52
52
53
53
- name : Set some linux specific things
54
- if : matrix.os == 'ubuntu-latest'
54
+ if : matrix.os == 'ubuntu-latest'
55
55
run : |
56
56
echo '::set-env name=LINUX_CABAL_ARGS::--enable-executable-static'
57
57
58
58
- name : Build Server
59
59
shell : bash
60
- run : cabal build exe:hls -O2 --disable-documentation $WIN_CABAL_ARGS $LINUX_CABAL_ARGS
60
+ # Try building it twice in case of flakey builds on Windows
61
+ run : |
62
+ cabal build exe:hls -O2 --disable-documentation $WIN_CABAL_ARGS $LINUX_CABAL_ARGS || \
63
+ cabal build exe:hls -O2 --disable-documentation $WIN_CABAL_ARGS $LINUX_CABAL_ARGS
61
64
62
65
- name : Find Server Binary
63
66
id : find_server_binary
You can’t perform that action at this time.
0 commit comments