Skip to content

Commit 841d0d2

Browse files
committed
Add Windows and MacOS CI jobs
1 parent 9103a00 commit 841d0d2

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/other.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: other
2+
on:
3+
- push
4+
- pull_request
5+
6+
defaults:
7+
run:
8+
shell: bash
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
os: [windows-latest, macOS-latest]
17+
ghc: ['latest']
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: haskell/actions/setup@v1
21+
id: setup-haskell-cabal
22+
with:
23+
ghc-version: ${{ matrix.ghc }}
24+
- name: Update cabal package database
25+
run: cabal update
26+
- uses: actions/cache@v2
27+
name: Cache cabal stuff
28+
with:
29+
path: |
30+
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
31+
dist-newstyle
32+
key: ${{ runner.os }}-${{ matrix.ghc }}
33+
- name: Build
34+
run: |
35+
cabal sdist -z -o .
36+
cabal get zlib-*.tar.gz
37+
cd zlib-*/
38+
cabal build
39+
- name: Haddock
40+
run: |
41+
cd zlib-*/
42+
cabal haddock

0 commit comments

Comments
 (0)