@@ -15,17 +15,19 @@ jobs:
1515 strategy :
1616 fail-fast : false
1717 matrix :
18- ghc : ['8.10.2', '8.10.1', '8.8.4', '8.8.3', '8.8.2', '8.6.5', '8.6.4']
19- os : [ubuntu-latest, macOS-latest, windows-latest]
20- exclude :
21- - os : windows-latest
22- ghc : ' 8.10.2' # broken due to https://gitlab.haskell.org/ghc/ghc/-/issues/18550
23- - os : windows-latest
24- ghc : ' 8.8.4' # also fails due to segfault :(
25- - os : windows-latest
26- ghc : ' 8.8.3' # fails due to segfault
27- - os : windows-latest
28- ghc : ' 8.8.2' # fails due to error with Cabal
18+ # ghc: ['8.10.2', '8.10.1', '8.8.4', '8.8.3', '8.8.2', '8.6.5', '8.6.4']
19+ # os: [ubuntu-latest, macOS-latest, windows-latest]
20+ ghc : ['8.10.1']
21+ os : [ubuntu-latest, macOS-latest]
22+ # exclude:
23+ # - os: windows-latest
24+ # ghc: '8.10.2' # broken due to https://gitlab.haskell.org/ghc/ghc/-/issues/18550
25+ # - os: windows-latest
26+ # ghc: '8.8.4' # also fails due to segfault :(
27+ # - os: windows-latest
28+ # ghc: '8.8.3' # fails due to segfault
29+ # - os: windows-latest
30+ # ghc: '8.8.2' # fails due to error with Cabal
2931
3032 steps :
3133 - uses : actions/checkout@v2
@@ -140,29 +142,33 @@ jobs:
140142 tar :
141143 needs : build
142144 runs-on : ubuntu-latest
145+ strategy :
146+ matrix :
147+ os : [Linux, macOS]
143148 steps :
144149 - uses : actions/download-artifact@v2
145150
151+ - run : ls -R
152+
146153 - run : |
147- for OS in Linux macOS
148- do
149- tar -czf haskell-language-server-$OS-${{ github.event.release.tag_name }}.tar.gz haskell-language-server-$OS-*.gz
150- done
154+ # move the binaries for the specific platform into bin/
155+ mkdir bin
156+ mv haskell-language-server-${{ runner.os }}-*.gz/haskell-language-server-*.gz bin
157+ # decompress them
158+ gzip -d bin/*.gz
159+ # renames haskell-language-server-macOS-8.8.1 => haskell-language-server-8.8.1
160+ # for f in bin/*
161+ # do
162+ # mv -- "$f" "$(echo "$f" | sed -e 's/haskell-language-server-.\+-/haskell-language-server-/' -)"
163+ # done
164+ tar -czf bin/haskell-language-server.tar.gz bin/*
151165
152166 - uses : actions/upload-release-asset@v1.0.2
153167 env :
154168 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
155169 with :
156170 upload_url : ${{ github.event.release.upload_url }}
157- asset_path : haskell-language-server-macOS-${{ github.event.release.tag_name }} .tar.gz
158- asset_name : haskell-language-server-macOS -${{ github.event.release.tag_name }}.tar.gz
171+ asset_path : bin/ haskell-language-server.tar.gz
172+ asset_name : haskell-language-server-${{ runner.os }} -${{ github.event.release.tag_name }}.tar.gz
159173 asset_content_type : application/gzip
160174
161- - uses : actions/upload-release-asset@v1.0.2
162- env :
163- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
164- with :
165- upload_url : ${{ github.event.release.upload_url }}
166- asset_path : haskell-language-server-Linux-${{ github.event.release.tag_name }}.tar.gz
167- asset_name : haskell-language-server-Linux-${{ github.event.release.tag_name }}.tar.gz
168- asset_content_type : application/gzip
0 commit comments