Skip to content

Commit 014a6fc

Browse files
committed
github-action: stylish-haskell
1 parent d26aaa2 commit 014a6fc

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

.github/workflows/haskell.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ jobs:
127127
- name: Set cache version
128128
run: |
129129
echo "CACHE_VERSION=hi5eTh3A" >> $GITHUB_ENV
130-
echo "STYLISH_HASKELL_VERSION=0.13.0.0" >> $GITHUB_ENV
131130
132131
- name: "Install build environment (apt-get)"
133132
run: |
@@ -151,22 +150,8 @@ jobs:
151150
path: ${{ steps.setup-haskell.outputs.cabal-store }}
152151
key: cache-dependencies-${{ env.CACHE_VERSION }}
153152

154-
- uses: actions/cache@v3
155-
name: "Cache `stylish-haskell`"
156-
with:
157-
path: ~/.cabal/bin/stylish-haskell
158-
key: cabal-path-${{ env.STYLISH_HASKELL_VERSION }}
159-
160-
# Install stylish-haskell unless the right version is already available
161-
# from the cache
162153
- name: "Install `stylish-haskell`"
163-
run: |
164-
if [[ -x $(which stylish-haskell) && $(stylish-haskell --version) == "stylish-haskell ${{ env.STYLISH_HASKELL_VERSION }}" ]];
165-
then
166-
echo "Using cached `stylish-haskell`"
167-
else
168-
cabal install stylish-haskell-${{ env.STYLISH_HASKELL_VERSION }}
169-
fi
154+
run: cabal install stylish-haskell
170155

171156
- name: "`stylish-haskell` version"
172157
run: |

0 commit comments

Comments
 (0)