Skip to content

Commit 4c957c8

Browse files
committed
ci: generate cabal file before cabal build
1 parent 8549bfe commit 4c957c8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/cabal-build.yml renamed to .github/workflows/stack-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: cabal-build
2+
name: stack-build
33
on:
44
push:
55
branches: main
@@ -40,6 +40,7 @@ jobs:
4040
# Defaults, added for clarity:
4141
cabal-version: latest
4242
cabal-update: true
43+
enable-stack: true
4344

4445
- name: Configure the build
4546
run: |
@@ -58,6 +59,9 @@ jobs:
5859
key: ${{ env.key }}-plan-${{ hashFiles('**/plan.json') }}
5960
restore-keys: ${{ env.key }}-
6061

62+
- name: Generate cabal file
63+
run: stack clean
64+
6165
- name: Install dependencies
6266
run: cabal build all --only-dependencies
6367

package.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: megaparsec-utils
23
version: 0.0.0.0-dev
34
license: GPL-3
@@ -51,7 +52,9 @@ tests:
5152
- -threaded
5253
- -rtsopts
5354
- -with-rtsopts=-N
55+
5456
dependencies:
5557
- megaparsec-utils
5658
- hspec
5759
- QuickCheck
60+
...

0 commit comments

Comments
 (0)