File tree 2 files changed +40
-1
lines changed
2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 31
31
- uses : actions/checkout@v2
32
32
with :
33
33
submodules : true
34
- - uses : bubba /setup-haskell@7235984
34
+ - uses : actions /setup-haskell@v1.1.3
35
35
with :
36
36
ghc-version : ${{ matrix.ghc }}
37
37
cabal-version : ' 3.2'
@@ -135,3 +135,30 @@ jobs:
135
135
name : haskell-language-server-wrapper-${{ runner.OS }}${{env.EXE_EXT}}.${{ steps.compress_wrapper_binary.outputs.extension }}
136
136
path : ${{ steps.compress_wrapper_binary.outputs.path }}
137
137
138
+ # this generates .gz tarfiles containing all the GHC versions for
139
+ # macOS and Linux, used by ghcup
140
+ tar :
141
+ needs : build
142
+ runs-on : ubuntu-latest
143
+ steps :
144
+ - uses : actions/download-artifact@v2
145
+
146
+ - run : |
147
+ for OS in Linux macOS
148
+ do
149
+ tar -czf haskell-language-server-$OS-${{ github.event.release.tag_name }}.gz haskell-language-server-$OS-*.gz
150
+ done
151
+
152
+
153
+ with :
154
+ upload_url : ${{ github.event.release.upload_url }}
155
+ asset_path : haskell-language-server-macOS-${{ github.event.release.tag_name }}.gz
156
+ asset_name : haskell-language-server-macOS-${{ github.event.release.tag_name }}.gz
157
+ asset_content_type : application/gzip
158
+
159
+
160
+ with :
161
+ upload_url : ${{ github.event.release.upload_url }}
162
+ asset_path : haskell-language-server-Linux-${{ github.event.release.tag_name }}.gz
163
+ asset_name : haskell-language-server-Linux-${{ github.event.release.tag_name }}.gz
164
+ asset_content_type : application/gzip
Original file line number Diff line number Diff line change @@ -70,3 +70,15 @@ One caveat is that we need to rename the binaries from
70
70
haskell-language-server/haskell-language-server-wrapper to hls/hls-wrapper due to
71
71
path length limitations on windows. But whenever we upload them to the release,
72
72
we make sure to upload them as their full name variant.
73
+
74
+ ### ghcup
75
+ Ghcup can install hls binaries, provided that there is a tarfile
76
+ called ` haskell-language-server-{macOS,Linux}-$HLS_VERSION.gz `
77
+ included in the GitHub release. The ` tar ` job in the workflow file automates the creation of this.
78
+
79
+ ### Windows
80
+ Currently building HLS with GHC 8.8.x on Windows is very flakey and so
81
+ is not included by default in the GitHub Actions build matrix. Instead
82
+ they need to be built and uploaded manually. See [ this
83
+ PR] ( https://github.com/haskell/haskell-language-server/issues/276 ) for
84
+ more details
You can’t perform that action at this time.
0 commit comments