Use nix-build in github-actions
This commit is contained in:
parent
05da490185
commit
272ff5b3e6
3 changed files with 52 additions and 9 deletions
14
.github/workflows/haskell.yml
vendored
14
.github/workflows/haskell.yml
vendored
|
|
@ -4,16 +4,12 @@ on: [push]
|
|||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install dependencies
|
||||
run: cabal install --only-dependencies --enable-tests
|
||||
- name: Build
|
||||
run: |
|
||||
cabal configure --enable-tests
|
||||
cabal build
|
||||
- name: Run tests
|
||||
run: cabal test
|
||||
- name: Nix Build
|
||||
with:
|
||||
args: default.nix
|
||||
uses: ./.github/actions/nix-build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue