Skip to content

Commit

Permalink
Create haskell.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed Aug 23, 2021
1 parent 331422a commit 2752b8d
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Haskell CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Haskell
uses: haskell/actions/setup@v1
with:
enable-stack: true
stack-setup-ghc: true
stack-no-global: true
- name: Cache stack
uses: actions/cache@v1
env:
cache-name: cache-stack
with:
path: ~/.stack
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache cabal
uses: actions/cache@v1
env:
cache-name: cache-cabal
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: |
stack update
stack build --only-dependencies
- name: Build
run: stack build
- name: Run tests
run: stack test

0 comments on commit 2752b8d

Please sign in to comment.