ghcide/.github/workflows/nix.yml

24 lines
600 B
YAML
Raw Permalink Normal View History

name: Nix
on: [pull_request]
jobs:
nix:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ghc: ['default', 'ghc8102', 'ghc884', 'ghc865']
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-20.03
- uses: cachix/cachix-action@v7
with:
name: haskell-ghcide
signingKey: '${{ secrets.GHCIDE_CACHIX_SIGNING_KEY }}'
- run: nix-shell --argstr compiler ${{ matrix.ghc }} --run "cabal update && cabal build"