2020-11-23 12:38:15 +03:00
|
|
|
name: Nix
|
|
|
|
|
2020-12-11 14:23:16 +03:00
|
|
|
on: [pull_request]
|
2020-11-23 12:38:15 +03:00
|
|
|
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"
|