File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- name : Conventional commits
3
-
2
+ name : conventional-commits
4
3
on :
5
4
pull_request :
6
- branches :
7
- - main
5
+ branches : [main]
8
6
9
7
jobs :
10
8
build :
Original file line number Diff line number Diff line change 1
1
---
2
- name : Semantic release
2
+ name : semantic- release
3
3
on :
4
- push :
5
- branches :
6
- - main
4
+ workflow_run :
5
+ workflows : [stack-build]
6
+ types : [completed]
7
+ branches : [main]
7
8
8
9
jobs :
9
10
build :
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ permissions:
11
11
12
12
jobs :
13
13
build :
14
- name : ${{ matrix.os }} / ghc ${{ matrix.ghc-version }}
14
+ name : ghc- ${{ matrix.ghc-version }} / ${{ matrix.os }}
15
15
runs-on : ${{ matrix.os }}-latest
16
16
strategy :
17
17
fail-fast : false
41
41
cabal-version : latest
42
42
cabal-update : true
43
43
enable-stack : true
44
+ stack-setup-ghc : true
45
+ stack-no-global : true
44
46
45
47
- name : Configure the build
46
48
run : |
49
+ # generate the .cabal file
50
+ stack clean
47
51
cabal configure --enable-tests --enable-benchmarks --disable-documentation
48
52
cabal build --dry-run
49
53
# The last step generates dist-newstyle/cache/plan.json for the cache key.
59
63
key : ${{ env.key }}-plan-${{ hashFiles('**/plan.json') }}
60
64
restore-keys : ${{ env.key }}-
61
65
62
- - name : Generate cabal file
63
- run : stack clean
64
-
65
66
- name : Install dependencies
66
67
run : cabal build all --only-dependencies
67
68
You can’t perform that action at this time.
0 commit comments