Skip to content

Commit 49261d3

Browse files
committed
Add github actions workflow
1 parent 06c5a57 commit 49261d3

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: GHC-WPC CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
if: github.ref != 'refs/heads/master'
12+
steps:
13+
- uses: DeterminateSystems/nix-installer-action@main
14+
- name: Cancel Previous Runs
15+
uses: styfle/[email protected]
16+
with:
17+
access_token: ${{ github.token }}
18+
19+
- name: Nix channel update
20+
run: nix-channel --update
21+
22+
- name: Cabal install
23+
run: nix-env -iA cabal-install -f '<nixpkgs>'
24+
25+
- name: Build external-stg-interpreter
26+
run: nix-shell -p ghc -p bzip2.dev -p zlib.dev --run 'cabal build external-stg-interpreter'
27+
28+
- name: Test external-stg-interpreter
29+
run: nix-shell -p 'haskellPackages.ghcWithPackages (p: with p; [ hspec-discover ])' --run 'cabal test external-stg-interpreter'

0 commit comments

Comments
 (0)