@@ -86,14 +86,14 @@ jobs:
86
86
- run : ./fmt.sh
87
87
name : " HLint via ./fmt.sh"
88
88
89
- - if : ${{ env.RUNNER_OS }} == 'Windows'
90
- name : Set some window specific things
89
+ - if : runner.os == 'Windows'
90
+ name : (Windows) Platform config
91
91
run : |
92
92
echo "CABAL_PKGS_DIR=~\\AppData\\cabal\\packages" >> $GITHUB_ENV
93
93
94
94
95
- - if : (${{ env.RUNNER_OS }} == 'Linux') || (${{ env.RUNNER_OS}} == 'macOS')
96
- name : Set some Linux/ macOS specific things
95
+ - if : ( runner.os == 'Linux' ) || ( runner.os == 'macOS' )
96
+ name : ( Linux, macOS) Platform config
97
97
run : |
98
98
echo "CABAL_PKGS_DIR=~/.cabal/packages" >> $GITHUB_ENV
99
99
@@ -127,8 +127,8 @@ jobs:
127
127
- run : cabal update
128
128
129
129
# Work around for filepath length limits in Windows
130
- - if : ${{ env.RUNNER_OS }} == 'Windows'
131
- name : Shorten binary names
130
+ - if : runner.os == 'Windows'
131
+ name : (Windows) Shorten binary names
132
132
run : |
133
133
sed -i.bak -e 's/haskell-language-server/hls/g' \
134
134
-e 's/haskell_language_server/hls/g' \
@@ -140,8 +140,8 @@ jobs:
140
140
run : cabal v2-build
141
141
142
142
# repeating builds to workaround segfaults in windows and ghc-8.8.4
143
- - if : ${{ env.RUNNER_OS }} == 'Windows'
144
- name : In Windows run build additional 2 times
143
+ - if : runner.os == 'Windows'
144
+ name : ( Windows) Run build additional 2 times
145
145
run : cabal v2-build || cabal v2-build
146
146
147
147
- name : Set test options
0 commit comments