Skip to content

Commit c8b42a6

Browse files
CI: add Cabal-macOS workflow (#35)
1 parent 674927e commit c8b42a6

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/Cabal-macOS.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Hackage, Cabal, macOS"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
schedule:
9+
- cron: "45 02 * * *"
10+
11+
12+
jobs:
13+
14+
build10:
15+
name: "GHC"
16+
runs-on: macos-latest
17+
continue-on-error: true
18+
# Template to build matrix of builds for subprojects in monorepo
19+
strategy:
20+
matrix:
21+
packageRoots: [ ./ ]
22+
ghc: [ "8.10" ]
23+
defaults:
24+
run:
25+
working-directory: "${{ matrix.packageRoots }}"
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: "Cache of ~/.cabal/packages, ~/.cabal/store and dist-newstyle"
29+
uses: actions/cache@v2
30+
with:
31+
path: |
32+
~/.cabal/packages
33+
~/.cabal/store
34+
dist-newstyle
35+
key: "${{ runner.os }}-Cabal-${{ matrix.ghc }}"
36+
- uses: haskell/actions/setup@v1
37+
with:
38+
ghc-version: ${{ matrix.ghc }}
39+
- run: "cabal v2-configure --disable-optimization --enable-tests --enable-deterministic"
40+
- run: "cabal v2-build"
41+
- run: "cabal v2-test"

0 commit comments

Comments
 (0)