Skip to content

Unpack: migrate internally to OsPath #180

Unpack: migrate internally to OsPath

Unpack: migrate internally to OsPath #180

name: win-mac-ci
on:
- push
- pull_request
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['windows-latest', 'macOS-latest']
ghc: ['latest']
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
- name: Update cabal package database
run: cabal update
- uses: actions/cache@v4
name: Cache cabal stuff
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}
# We rebuild tests several times to avoid intermittent failures on Windows
- name: Test
run: |
bld() { cabal build pkg:tar:tests; }
bld || bld || bld
cabal test --test-show-details=direct
- name: Haddock
run: cabal haddock
- name: SDist
run: cabal sdist
- name: Build bench
run: cabal bench --benchmark-option=-l