Skip to content

Commit ce53d3d

Browse files
committed
default shell
1 parent a064ed1 commit ce53d3d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/build.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Builds
22

3-
defaults:
4-
run:
5-
shell: bash
6-
73
on:
84
release:
95
types: [created]
@@ -15,6 +11,9 @@ jobs:
1511
build:
1612
runs-on: ${{ matrix.os }}
1713
container: ${{ (matrix.os == 'ubuntu-18.04' && 'alpine:3.12') || '' }}
14+
defaults:
15+
run:
16+
shell: ${{ (matrix.os == 'windows-latest' && 'bash') || 'sh' }}
1817
strategy:
1918
fail-fast: false
2019
matrix:
@@ -46,7 +45,6 @@ jobs:
4645
- name: Use modified cabal.project for ghc9
4746
if: ${{ matrix.ghc == '9.0.1' }}
4847
run: cp cabal-ghc901.project cabal.project
49-
shell: bash
5048

5149
- name: Shorten binary names
5250
run: |
@@ -55,7 +53,6 @@ jobs:
5553
haskell-language-server.cabal cabal.project
5654
sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
5755
src/**/*.hs exe/*.hs
58-
shell: bash
5956
6057
- name: Set some window specific things
6158
if: matrix.os == 'windows-latest'
@@ -64,7 +61,6 @@ jobs:
6461
run: |
6562
echo "EXE_EXT=.exe" >> $GITHUB_ENV
6663
echo "GHC_VERSION=$GHC_VER" >> $GITHUB_ENV
67-
shell: bash
6864
6965
- name: Set some linux specific things
7066
if: matrix.os == 'ubuntu-18.04'
@@ -95,7 +91,6 @@ jobs:
9591
9692
- name: Compress server binary
9793
id: compress_server_binary
98-
shell: bash
9994
run: |
10095
HLS_BUILD=$(find dist-newstyle \( -name 'hls' -o -name 'hls.exe' \) -type f)
10196
HLS=haskell-language-server-${{env.GHC_VERSION}}

0 commit comments

Comments
 (0)