File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : Builds
2
2
3
- defaults :
4
- run :
5
- shell : bash
6
-
7
3
on :
8
4
release :
9
5
types : [created]
15
11
build :
16
12
runs-on : ${{ matrix.os }}
17
13
container : ${{ (matrix.os == 'ubuntu-18.04' && 'alpine:3.12') || '' }}
14
+ defaults :
15
+ run :
16
+ shell : ${{ (matrix.os == 'windows-latest' && 'bash') || 'sh' }}
18
17
strategy :
19
18
fail-fast : false
20
19
matrix :
46
45
- name : Use modified cabal.project for ghc9
47
46
if : ${{ matrix.ghc == '9.0.1' }}
48
47
run : cp cabal-ghc901.project cabal.project
49
- shell : bash
50
48
51
49
- name : Shorten binary names
52
50
run : |
55
53
haskell-language-server.cabal cabal.project
56
54
sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
57
55
src/**/*.hs exe/*.hs
58
- shell : bash
59
56
60
57
- name : Set some window specific things
61
58
if : matrix.os == 'windows-latest'
64
61
run : |
65
62
echo "EXE_EXT=.exe" >> $GITHUB_ENV
66
63
echo "GHC_VERSION=$GHC_VER" >> $GITHUB_ENV
67
- shell : bash
68
64
69
65
- name : Set some linux specific things
70
66
if : matrix.os == 'ubuntu-18.04'
95
91
96
92
- name : Compress server binary
97
93
id : compress_server_binary
98
- shell : bash
99
94
run : |
100
95
HLS_BUILD=$(find dist-newstyle \( -name 'hls' -o -name 'hls.exe' \) -type f)
101
96
HLS=haskell-language-server-${{env.GHC_VERSION}}
You can’t perform that action at this time.
0 commit comments