Bump version bounds for constraints and primitive #28
Workflow file for this run
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: Continuous integration | |
on: [push, pull_request] | |
env: | |
# Bump this number to invalidate the Github-actions cache | |
cache-invalidation-key: 0 | |
jobs: | |
tests: | |
name: Build & Test | |
env: | |
NIXSHELL: nix-shell --pure | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/install-nix-action@v12 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Build Nix dependencies | |
run: $NIXSHELL --run "echo '=== Installed ==='" | |
- name: Cache Cabal dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cabal/packages | |
~/.cabal/store | |
dist-newstyle | |
key: cache-${{ runner.os }}-${{ hashFiles('nixpkgs.nix') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('capability.cabal') }}-${{ github.sha }} | |
restore-keys: cache-${{ runner.os }}-${{ hashFiles('nixpkgs.nix') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('capability.cabal') }}- | |
- name: Update Cabal's database | |
run: $NIXSHELL --run "cabal update" | |
- name: Build Cabal's dependencies | |
run: $NIXSHELL --run "cabal build --enable-tests --enable-benchmarks --dependencies-only" | |
- name: Build | |
run: $NIXSHELL --run "cabal build --flag=dev " | |
- name: Test | |
run: $NIXSHELL --run "cabal --flag=dev test" | |
- name: Haddock | |
run: $NIXSHELL --run "cabal haddock" | |
stack-ghc9: | |
name: Build on GHC 9.2 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Cache dependencies | |
uses: actions/[email protected] | |
with: | |
path: ~/.stack | |
key: stack-ghc9-${{ runner.os }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack-ghc9.yaml.lock', 'capability.cabal') }} | |
- name: Upgrade stack | |
run: stack upgrade | |
- name: Build | |
run: stack --stack-yaml=stack-ghc9.yaml build --pedantic --test --bench --no-run-tests --no-run-benchmarks |