From 6b0eea666e77d161ea39570748e6dc230f004f0a Mon Sep 17 00:00:00 2001 From: Juan Pedro Villa Isaza <584947+jpvillaisaza@users.noreply.github.com> Date: Sun, 16 Feb 2020 11:18:11 -0500 Subject: [PATCH] Configure GitHub Actions (#24) --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ff8ada3 --- /dev/null +++ b/.github/workflows/main.yml @@ -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