Skip to content

Make it compile with MicroHs #304

Make it compile with MicroHs

Make it compile with MicroHs #304

Workflow file for this run

name: ci
on:
push: {}
pull_request: {}
workflow_dispatch: {}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest]
ghc: ['9.8.2', '9.6.4', '9.4.8']
steps:
- uses: actions/checkout@v4
- name: "MacOS: install autoconf"
if: runner.os == 'macOS'
run: |
brew install autoconf
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
- uses: actions/cache@v4
name: Cache cabal stuff
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}
- name: Build
run: |
autoreconf -i
cabal update
cabal v1-install --only-dependencies --enable-tests
cabal v1-configure --enable-tests
cabal v1-test
- name: Haddock
run: cabal v1-haddock
build-win:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
fail-fast: false
matrix:
ghc: ['9.8.2', '9.6.4', '9.4.8']
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
- uses: actions/cache@v4
name: Cache cabal stuff
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
path-type: inherit
install: autoconf
- name: Build
run: |
autoreconf -i
cabal update
cabal v1-install --only-dependencies --enable-tests
cabal v1-configure --enable-tests
cabal v1-test
- name: Haddock
run: cabal v1-haddock
build-freebsd:
# See https://github.com/marketplace/actions/freebsd-vm.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
id: build-freebsd
uses: vmactions/freebsd-vm@v1
with:
usesh: true
mem: 4096
prepare: pkg install -y ghc hs-cabal-install git autoconf
run: |
autoreconf -i
cabal update
cabal v1-install --only-dependencies --enable-tests
cabal v1-configure --enable-tests
cabal v1-test