Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 6581936

Browse files
author
Hendrik van Antwerpen
committed
Replace direct download of cabal-cache with installing via cabal
1 parent df067f9 commit 6581936

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/haskell.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ jobs:
4242
4343
- name: Get cabal-cache
4444
run: |
45-
curl -L https://github.com/haskell-works/cabal-cache/releases/download/v1.0.1.8/cabal-cache_x86_64_linux.tar.gz > ./cc.tar.gz
46-
tar -xvf ./cc.tar.gz
45+
cabal new-install cabal-cache
4746
4847
- name: Configure project
4948
run: |
@@ -52,7 +51,7 @@ jobs:
5251
cd semantic-source && cabal v2-configure --project-file=cabal.project.ci --disable-optimization --enable-tests --write-ghc-environment-files=always -j2
5352
5453
- name: Restore from cache
55-
run: ./cabal-cache sync-from-archive --threads=2 --archive-uri=dist-cache || true
54+
run: cabal-cache sync-from-archive --threads=2 --archive-uri=dist-cache || true
5655

5756
- name: Build & test
5857
run: |
@@ -73,4 +72,4 @@ jobs:
7372
cd semantic-source && cabal v2-run --project-file=cabal.project.ci semantic-source:test
7473
7574
- name: Write out cache
76-
run: ./cabal-cache sync-to-archive --threads=2 --archive-uri=dist-cache
75+
run: cabal-cache sync-to-archive --threads=2 --archive-uri=dist-cache

0 commit comments

Comments
 (0)