@@ -50,11 +50,20 @@ jobs:
50
50
51
51
- name : Set some window specific things
52
52
if : matrix.os == 'windows-latest'
53
- run : echo "EXE_EXT=.exe" >> $GITHUB_ENV
53
+ env :
54
+ GHC_VER : ${{ matrix.ghc }}
55
+ run : |
56
+ echo "EXE_EXT=.exe" >> $GITHUB_ENV
57
+ GHC_VER=$(echo $GHC_VER | sed 's/8.10.2.2/8.10.2/g')
58
+ echo "GHC_VERSION=$GHC_VER" >> $GITHUB_ENV
54
59
55
60
- name : Set some linux specific things
56
61
if : matrix.os == 'ubuntu-latest'
57
- run : echo "LINUX_CABAL_ARGS=--enable-executable-static --ghc-options=-split-sections" >> $GITHUB_ENV
62
+ env :
63
+ GHC_VER : ${{ matrix.ghc }}
64
+ run : |
65
+ echo "LINUX_CABAL_ARGS=--enable-executable-static --ghc-options=-split-sections" >> $GITHUB_ENV
66
+ echo "GHC_VERSION=$GHC_VER" >> $GITHUB_ENV
58
67
59
68
- name : Build Server
60
69
# Try building it twice in case of flakey builds on Windows
@@ -64,13 +73,10 @@ jobs:
64
73
65
74
- name : Compress Server Binary
66
75
id : compress_server_binary
67
- env :
68
- GHC_VER : ${{ matrix.ghc }}
69
76
run : |
70
77
# We normalize windows+choco ghc version 8.10.2.2
71
- GHC_VERSION=$(echo $GHC_VERSION | sed 's/8.10.2.2/8.10.2/g')
72
78
HLS_BUILD=$(find dist-newstyle \( -name 'hls' -o -name 'hls.exe' \) -type f)
73
- HLS=haskell-language-server-$GHC_VER
79
+ HLS=haskell-language-server-${{env.GHC_VERSION}}
74
80
mv $HLS_BUILD $HLS${{env.EXE_EXT}}
75
81
if [[ "$OSTYPE" == "msys" ]]; then
76
82
7z a $HLS.zip $HLS${{env.EXE_EXT}}
91
97
with :
92
98
upload_url : ${{ github.event.release.upload_url }}
93
99
asset_path : ${{ steps.compress_server_binary.outputs.path }}
94
- asset_name : haskell-language-server-${{ runner.OS }}-${{ matrix.ghc }}${{env.EXE_EXT}}.${{ steps.compress_server_binary.outputs.extension }}
100
+ asset_name : haskell-language-server-${{ runner.OS }}-${{ env.GHC_VERSION }}${{env.EXE_EXT}}.${{ steps.compress_server_binary.outputs.extension }}
95
101
asset_content_type : ${{ steps.compress_server_binary.outputs.content_type }}
96
102
97
103
- uses : actions/upload-artifact@v2
0 commit comments