Skip to content

Commit eda3a65

Browse files
committed
Fix GitHub actions for build
1 parent 0c19a2f commit eda3a65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ jobs:
115115
path: ${{ steps.compress_server_binary.outputs.path }}
116116

117117
- name: Build Wrapper
118-
if: matrix.ghc == '8.10.5'
118+
if: matrix.ghc == '8.10.5' && matrix.os != 'macOS-latest' || matrix.ghc == '8.10.4' && matrix.os == 'macOS-latest'
119119
run: cabal build exe:hls-wrapper -O2 $LINUX_CABAL_ARGS
120120

121121
- name: Compress Wrapper Binary
122-
if: matrix.ghc == '8.10.5'
122+
if: matrix.ghc == '8.10.5' && matrix.os != 'macOS-latest' || matrix.ghc == '8.10.4' && matrix.os == 'macOS-latest'
123123
id: compress_wrapper_binary
124124
run: |
125125
HLS_WRAPPER_BUILD=$(find dist-newstyle \( -name 'hls-wrapper' -o -name 'hls-wrapper.exe' \) -type f)
@@ -138,7 +138,7 @@ jobs:
138138
fi
139139
140140
- name: Upload Wrapper
141-
if: matrix.ghc == '8.10.5'
141+
if: matrix.ghc == '8.10.5' && matrix.os != 'macOS-latest' || matrix.ghc == '8.10.4' && matrix.os == 'macOS-latest'
142142
uses: actions/upload-release-asset@v1.0.2
143143
env:
144144
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -149,7 +149,7 @@ jobs:
149149
asset_content_type: ${{ steps.compress_wrapper_binary.outputs.content_type}}
150150

151151
- uses: actions/upload-artifact@v2
152-
if: matrix.ghc == '8.10.5'
152+
if: matrix.ghc == '8.10.5' && matrix.os != 'macOS-latest' || matrix.ghc == '8.10.4' && matrix.os == 'macOS-latest'
153153
with:
154154
name: haskell-language-server-wrapper-${{ runner.OS }}${{env.EXE_EXT}}.${{ steps.compress_wrapper_binary.outputs.extension }}
155155
path: ${{ steps.compress_wrapper_binary.outputs.path }}

0 commit comments

Comments
 (0)