Skip to content

Commit dc4787b

Browse files
committed
CI: {cache-deps,test}: fix expressions & org platform step names
1 parent 0b79039 commit dc4787b

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/cache-deps.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646
ghc-version: ${{ matrix.ghc }}
4747
cabal-version: "3.4"
4848

49-
- if: matrix.os == 'windows-latest'
50-
name: Set some window specific things
49+
- if: runner.os == 'Windows'
50+
name: (Windows) Platform config
5151
run: |
5252
echo "CABAL_PKGS_DIR=~\\AppData\\cabal\\packages" >> $GITHUB_ENV
5353
54-
- if: (${{ env.RUNNER_OS }} == 'Linux') || (${{ env.RUNNER_OS}} == 'macOS')
55-
name: Set some Linux/macOS specific things
54+
- if: ( runner.os == 'Linux' ) || ( runner.os == 'macOS' )
55+
name: (Linux,macOS) Platform config
5656
run: |
5757
echo "CABAL_PKGS_DIR=~/.cabal/packages" >> $GITHUB_ENV
5858
@@ -87,8 +87,8 @@ jobs:
8787
- run: cabal update
8888

8989
# Work around for filepath length limits in Windows
90-
- if: ${{ env.RUNNER_OS }} == 'Windows'
91-
name: Shorten binary names
90+
- if: runner.os == 'Windows'
91+
name: (Windows) Shorten binary names
9292
run: |
9393
sed -i.bak -e 's/haskell-language-server/hls/g' \
9494
-e 's/haskell_language_server/hls/g' \
@@ -100,6 +100,6 @@ jobs:
100100
run: cabal v2-build --enable-tests --enable-benchmarks --only-dependencies
101101

102102
# repeating builds to workaround segfaults in windows and ghc-8.8.4
103-
- if: ${{ env.RUNNER_OS }} == 'Windows'
104-
name: In Windows run build additional 2 times
103+
- if: runner.os == 'Windows'
104+
name: (Windows) Run build additional 2 times
105105
run: cabal v2-build --enable-tests --enable-benchmarks --only-dependencies || cabal v2-build --enable-tests --enable-benchmarks --only-dependencies

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ jobs:
8686
- run: ./fmt.sh
8787
name: "HLint via ./fmt.sh"
8888

89-
- if: ${{ env.RUNNER_OS }} == 'Windows'
90-
name: Set some window specific things
89+
- if: runner.os == 'Windows'
90+
name: (Windows) Platform config
9191
run: |
9292
echo "CABAL_PKGS_DIR=~\\AppData\\cabal\\packages" >> $GITHUB_ENV
9393
9494
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
9797
run: |
9898
echo "CABAL_PKGS_DIR=~/.cabal/packages" >> $GITHUB_ENV
9999
@@ -127,8 +127,8 @@ jobs:
127127
- run: cabal update
128128

129129
# 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
132132
run: |
133133
sed -i.bak -e 's/haskell-language-server/hls/g' \
134134
-e 's/haskell_language_server/hls/g' \
@@ -140,8 +140,8 @@ jobs:
140140
run: cabal v2-build
141141

142142
# 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
145145
run: cabal v2-build || cabal v2-build
146146

147147
- name: Set test options

0 commit comments

Comments
 (0)