Skip to content

Commit 52851cd

Browse files
committed
Generate .gz tars of all the binaries for macOS and Linux
Used by ghcup
1 parent d4d50a6 commit 52851cd

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,29 @@ jobs:
135135
name: haskell-language-server-wrapper-${{ runner.OS }}${{env.EXE_EXT}}.${{ steps.compress_wrapper_binary.outputs.extension }}
136136
path: ${{ steps.compress_wrapper_binary.outputs.path }}
137137

138+
# this generates .gz tarfiles containing all the GHC versions for
139+
# macOS and Linux, used by ghcup
140+
tar:
141+
needs: build
142+
steps:
143+
- uses: actions/download-artifact@v2
144+
145+
- run: |
146+
for OS in Linux macOS
147+
do
148+
tar -czf haskell-language-server-$OS-${{ github.event.release.tag_name }}.tar.gz haskell-language-server-$OS-*.gz
149+
done
150+
151+
- uses: actions/[email protected]
152+
with:
153+
upload_url: ${{ github.event.release.upload_url }}
154+
asset_path: haskell-language-server-macOS-${{ github.event.release.tag_name }}.gz
155+
asset_name: haskell-language-server-macOS-${{ github.event.release.tag_name }}.gz
156+
asset_content_type: application/gzip
157+
158+
- uses: actions/[email protected]
159+
with:
160+
upload_url: ${{ github.event.release.upload_url }}
161+
asset_path: haskell-language-server-Linux-${{ github.event.release.tag_name }}.gz
162+
asset_name: haskell-language-server-Linux-${{ github.event.release.tag_name }}.gz
163+
asset_content_type: application/gzip

0 commit comments

Comments
 (0)