Limit purescrip to <0.15.12 #175
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: CI | |
on: | |
pull_request: | |
push: | |
jobs: | |
nix-build: | |
name: Nix build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/install-nix-action@v17 | |
- name: Build purenix | |
run: nix build -L | |
- name: Build PureNix devShells | |
run: nix build -L '.#devShells.x86_64-linux.hacking-on-purenix' '.#devShells.x86_64-linux.use-purenix' | |
cabal-build: | |
name: Cabal GHC ${{ matrix.ghc }} on ${{ matrix.os }} | |
strategy: | |
matrix: | |
ghc: | |
# - '9.0.2' | |
- '9.2.3' | |
os: | |
- ubuntu-latest | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: haskell/actions/setup@v1 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cabal | |
dist-newstyle | |
key: cabal-cache-${{ matrix.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal') }} | |
- name: Build dependencies | |
run: | | |
cabal new-build --only-dependencies | |
- name: Build purenix | |
run: | | |
cabal new-build | |
- name: Run tests | |
run: | | |
cabal new-test --test-show-details=direct |