Skip to content

Commit 5680316

Browse files
committed
[ fix ][ ci ] Use direct hpack binary for cabal drift check
1 parent 71aa003 commit 5680316

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/test.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ jobs:
2626
- name: 📥 Checkout repository
2727
uses: actions/checkout@v4
2828

29-
- name: 🏗 Setup Haskell
30-
uses: haskell-actions/setup@v2
31-
with:
32-
enable-stack: true
33-
stack-version: 'latest'
29+
- name: 📥 Install hpack
30+
run: |
31+
mkdir -p "$HOME/.local/bin"
32+
curl -fsSL https://github.com/sol/hpack/releases/download/0.38.3/hpack_linux.gz \
33+
| gunzip > "$HOME/.local/bin/hpack"
34+
chmod +x "$HOME/.local/bin/hpack"
35+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
3436
3537
- name: 🔄 Regenerate cabal file with hpack
36-
run: stack exec --package hpack -- hpack
38+
run: hpack
3739

3840
- name: 🔍 Check for generated-file drift
3941
run: git diff --exit-code -- agda-language-server.cabal

0 commit comments

Comments
 (0)