Configure GitHub Actions (#24)

This commit is contained in:
Juan Pedro Villa Isaza 2020-02-16 11:18:11 -05:00 committed by GitHub
parent fc1fd98e8a
commit 6b0eea666e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Main
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.stack
key: stack-${{ hashFiles('stack.yaml.lock') }}
- name: Install GHC
run: stack setup
- name: Build dependencies
run: stack build --only-dependencies
- name: Build package
run: stack build