Skip to content

Add github actions workflow #1

Add github actions workflow

Add github actions workflow #1

Workflow file for this run

name: GHC-WPC CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master'
steps:
- uses: DeterminateSystems/nix-installer-action@main
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Nix channel update
run: nix-channel --update
- name: Cabal install
run: nix-env -iA cabal-install -f '<nixpkgs>'
- name: Build external-stg-interpreter
run: nix-shell -p ghc -p bzip2.dev -p zlib.dev --run 'cabal build external-stg-interpreter'
- name: Test external-stg-interpreter
run: nix-shell -p 'haskellPackages.ghcWithPackages (p: with p; [ hspec-discover ])' --run 'cabal test external-stg-interpreter'

Check failure on line 29 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 29