Skip to content

Commit f3f426d

Browse files
committed
CI: {cache-deps,test}: mk workaround as Windows-only
Doing match in this way - ensures it works for all Windows configured, not only `windows-latest` case.
1 parent 117d6d6 commit f3f426d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/cache-deps.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ jobs:
104104

105105
- run: cabal update
106106

107-
# Need this to work around filepath length limits in Windows
108-
- name: Shorten binary names
107+
# Work around for filepath length limits in Windows
108+
- if: ${{ env.RUNNER_OS }} == 'Windows'
109+
name: Shorten binary names
109110
run: |
110111
sed -i.bak -e 's/haskell-language-server/hls/g' \
111112
-e 's/haskell_language_server/hls/g' \

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ jobs:
126126

127127
- run: cabal update
128128

129-
# Need this to work around filepath length limits in Windows
130-
- name: Shorten binary names
129+
# Work around for filepath length limits in Windows
130+
- if: ${{ env.RUNNER_OS }} == 'Windows'
131+
name: Shorten binary names
131132
run: |
132133
sed -i.bak -e 's/haskell-language-server/hls/g' \
133134
-e 's/haskell_language_server/hls/g' \

0 commit comments

Comments
 (0)