Skip to content

CI: fixes

CI: fixes #5

Workflow file for this run

name: CI
on:
push:
branches: [ "mistress" ]
jobs:
stack:
name: "${{ matrix.os }} / stack + ghc-${{ matrix.ghc }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
cabal:
- "3.6.2.0"
ghc:
- "9.4.7"
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/[email protected]
name: Setup Haskell Stack
with:
ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }}
- uses: actions/cache@v2
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ matrix.os }}-${{ matrix.ghc }}-stack
- name: Install dependencies
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --only-dependencies
- name: Test
run: |
stack test --system-ghc
- name: Build
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
- name: Upload
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: prop-solveur-${{ matrix.os }}-${{ github.sha }}
if: matrix.os == "ubuntu-latest"
path: ~/.stack-work/dist/x86_64-linux/ghc-9.4.7/build/prop-solveur/prop-solveur