Skip to content

Commit 53b173a

Browse files
committed
chore: ignore cabal file
1 parent afbba06 commit 53b173a

File tree

6 files changed

+18
-78
lines changed

6 files changed

+18
-78
lines changed

.github/workflows/conventional-commits.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
---
2-
name: Conventional commits
3-
2+
name: conventional-commits
43
on:
54
pull_request:
6-
branches:
7-
- main
5+
branches: [main]
86

97
jobs:
108
build:

.github/workflows/semantic-release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2-
name: Semantic release
2+
name: semantic-release
33
on:
4-
push:
5-
branches:
6-
- main
4+
workflow_run:
5+
workflows: [stack-build]
6+
types: [completed]
7+
branches: [main]
78

89
jobs:
910
build:

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

Lines changed: 7 additions & 2 deletions
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
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
build:
14-
name: ${{ matrix.os }} / ghc ${{ matrix.ghc-version }}
14+
name: ghc-${{ matrix.ghc-version }} / ${{ matrix.os }}
1515
runs-on: ${{ matrix.os }}-latest
1616
strategy:
1717
fail-fast: false
@@ -40,9 +40,14 @@ jobs:
4040
# Defaults, added for clarity:
4141
cabal-version: latest
4242
cabal-update: true
43+
enable-stack: true
44+
stack-setup-ghc: true
45+
stack-no-global: true
4346

4447
- name: Configure the build
4548
run: |
49+
# generate the .cabal file
50+
stack ls dependencies >/dev/null
4651
cabal configure --enable-tests --enable-benchmarks --disable-documentation
4752
cabal build --dry-run
4853
# The last step generates dist-newstyle/cache/plan.json for the cache key.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
megaparsec-utils.cabal
12
.stack-work/
23
*~
34
dist-newstyle/

megaparsec-utils.cabal

Lines changed: 0 additions & 68 deletions
This file was deleted.

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)