Skip to content

Commit

Permalink
Merge pull request #86 from amesgen/more-ci
Browse files Browse the repository at this point in the history
Add CI jobs for macOS and Windows
  • Loading branch information
CetinSert authored May 1, 2023
2 parents fad77ab + bc87f65 commit 504a3f5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/other.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: CI
on:
push:
pull_request:
Expand Down Expand Up @@ -28,3 +29,31 @@ jobs:
- name: Build
run: |
wasm32-wasi-cabal build
non-linux:
name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, windows-latest]
ghc: ['7.10.3', '8.0.2', '8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.7', '9.4.4', '9.6.1']

steps:
- uses: actions/checkout@v3

- uses: haskell/actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}

- uses: actions/cache@v3
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- run: cabal build
- run: cabal test --test-show-details=direct

0 comments on commit 504a3f5

Please sign in to comment.