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 11---
2- name : Conventional commits
3-
2+ name : conventional-commits
43on :
54 pull_request :
6- branches :
7- - main
5+ branches : [main]
86
97jobs :
108 build :
Original file line number Diff line number Diff line change 11---
2- name : Semantic release
2+ name : semantic- release
33on :
4- push :
5- branches :
6- - main
4+ workflow_run :
5+ workflows : [stack-build]
6+ types : [completed]
7+ branches : [main]
78
89jobs :
910 build :
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ permissions:
1111
1212jobs :
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
4141 cabal-version : latest
4242 cabal-update : true
4343 enable-stack : true
44+ stack-setup-ghc : true
45+ stack-no-global : true
4446
4547 - name : Configure the build
4648 run : |
49+ # generate the .cabal file
50+ stack clean
4751 cabal configure --enable-tests --enable-benchmarks --disable-documentation
4852 cabal build --dry-run
4953 # The last step generates dist-newstyle/cache/plan.json for the cache key.
5963 key : ${{ env.key }}-plan-${{ hashFiles('**/plan.json') }}
6064 restore-keys : ${{ env.key }}-
6165
62- - name : Generate cabal file
63- run : stack clean
64-
6566 - name : Install dependencies
6667 run : cabal build all --only-dependencies
6768
You can’t perform that action at this time.
0 commit comments