File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Builds
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ alpine :
7
+ description : ' Use alpine to build a fully static executable for linux'
8
+ required : false
9
+ default : ' false'
5
10
release :
6
11
types : [created]
7
12
push :
11
16
jobs :
12
17
build :
13
18
runs-on : ${{ matrix.os }}
14
- container : ${{ (startsWith(matrix.os,'ubuntu') && 'alpine:3.12') || '' }}
19
+ container : ${{ (github.event.inputs.alpine == 'true' && startsWith(matrix.os,'ubuntu') && 'alpine:3.12') || '' }}
15
20
defaults :
16
21
run :
17
22
shell : ${{ (startsWith(matrix.os,'windows') && 'bash') || 'sh' }}
35
40
36
41
steps :
37
42
- name : Install system dependencies
38
- if : runner.os == 'Linux'
43
+ if : github.event.inputs.alpine == 'true' && runner.os == 'Linux'
39
44
run : |
40
45
apk add --no-cache curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz gzip tar perl git bash sudo binutils-gold
41
46
apk add --no-cache zlib zlib-dev zlib-static gmp gmp-dev ncurses-static
Original file line number Diff line number Diff line change 53
53
# Shorten binary names
54
54
sed -i.bak -e ' s/haskell-language-server/hls/g' \
55
55
-e ' s/haskell_language_server/hls/g' \
56
- haskell-language-server.cabal cabal.project
56
+ haskell-language-server.cabal $CABAL_PROJECT
57
57
sed -i.bak -e ' s/Paths_haskell_language_server/Paths_hls/g' \
58
58
src/** /* .hs exe/* .hs
59
59
@@ -77,4 +77,3 @@ cp "$(cabal list-bin ${args[@]} exe:hls-wrapper)" "$CI_PROJECT_DIR/out/haskell-l
77
77
cp dist-newstyle/cache/plan.json " $CI_PROJECT_DIR /out/plan.json"
78
78
79
79
cd " $CI_PROJECT_DIR /out/"
80
-
Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ common tactic
259
259
cpp-options : -Dtactic
260
260
261
261
common hlint
262
- if flag(hlint)
262
+ if flag(hlint) && (impl(ghc < 9.2.1 ) || flag(ignore-plugins-ghc-bounds))
263
263
build-depends : hls-hlint-plugin ^>= 1.0.0.2
264
264
cpp-options : -Dhlint
265
265
You can’t perform that action at this time.
0 commit comments