Always sys/random.h, I don't like Apple nor Google equally now #69
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Simple | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
native: | |
name: "Simple: GHC ${{ matrix.ghc }} on ${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest] | |
# older GHCs don't work well on macos-latest (i.e. arm) | |
ghc: ['9.2','9.4','9.6','9.8','9.10','9.12'] | |
fail-fast: false | |
steps: | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- name: Checkout | |
uses: actions/checkout@v3.0.2 | |
- name: Set up Haskell | |
id: setup-haskell | |
uses: haskell-actions/setup@v2 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: '3.14.2.0' | |
- name: Dependency resolution | |
run: cabal build all --enable-tests --dry-run | |
- name: Restore cache | |
uses: actions/cache/restore@v4 | |
with: | |
path: ${{ steps.setup-haskell.outputs.cabal-store }} | |
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dist-newstyle/cache/plan.json') }} | |
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}- | |
- name: Build | |
run: cabal build all --enable-tests | |
- name: Test | |
run: cabal test all --enable-tests --test-show-details=direct | |
- name: Save cache | |
if: always() | |
uses: actions/cache/save@v4 | |
with: | |
path: ${{ steps.setup-haskell.outputs.cabal-store }} | |
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dist-newstyle/cache/plan.json') }} |