Skip to content

Commit d4b32fd

Browse files
JoranVanBelleAlexeyRaga
authored andcommitted
build: update deprecated things
1 parent eb193f5 commit d4b32fd

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/haskell.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Build librdkafka
3333
run: ./scripts/build-librdkafka
3434

35-
- uses: haskell/actions/setup@v1
35+
- uses: haskell-actions/setup@v2
3636
id: setup-haskell
3737
with:
3838
ghc-version: ${{ matrix.ghc }}
@@ -45,10 +45,15 @@ jobs:
4545
- name: Configure project
4646
run: cabal configure --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+
4747

48-
- uses: action-works/cabal-cache@v1
49-
name: Cache cabal store
48+
- name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle
49+
uses: actions/cache@v4
5050
with:
51-
key-prefix: CwBTpnRd
51+
path: |
52+
~/.cabal/packages
53+
~/.cabal/store
54+
dist-newstyle
55+
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }}
56+
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
5257

5358
- name: Build
5459
# Try building it twice in case of flakey builds on Windows
@@ -98,7 +103,8 @@ jobs:
98103
if git push origin "v$package_version"; then
99104
echo "Tagged with new version "v$package_version""
100105
101-
echo "::set-output name=tag::v$package_version"
106+
echo "tag=v$package_version" >> $GITHUB_OUTPUT
107+
102108
fi
103109
fi
104110

0 commit comments

Comments
 (0)