.github/workflows/nix.yml: init

This commit is contained in:
Vaibhav Sagar 2020-05-03 13:37:23 +08:00
parent 65e0a18601
commit d3a062a2c7

28
.github/workflows/nix.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: "Nix"
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
versions:
- compiler: 'ghc865'
- compiler: 'ghc883'
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v8
- uses: cachix/cachix-action@v6
with:
name: ihaskell
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: |
nix-build \
-I nixpkgs=https://github.com/NixOS/nixpkgs-channels/tarball/nixos-20.03 \
release.nix \
--argstr compiler ${{ matrix.versions.compiler }}
test/acceptance.nbconvert.sh result/bin/ihaskell-nbconvert