Merge pull request #236 from stackbuilders/alexis/issue-225 #235
This file contains 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: Build | |
on: push | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
haskell: | |
strategy: | |
matrix: | |
os: | |
- macos-13 # x86_64-darwin | |
- macos-latest # aarch64-darwin | |
- ubuntu-latest # x86_64-linux | |
fail-fast: true | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v12 | |
with: | |
extra-conf: accept-flake-config = true | |
- uses: DeterminateSystems/magic-nix-cache-action@v7 | |
- name: Compile code | |
run: nix build .#test | |
- name: Run tests | |
run: nix run .#test | |
docker: | |
uses: ./.github/workflows/reusable-docker.yml | |
with: | |
push: false |