Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add github actions. #213

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/cabal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: cabal

on:
push:
branches: [ci-cabal, add/github-actions]
pull_request:
branches: [master]

jobs:
build:
name: ghc ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.4"]
ghc:
- "8.10.7"

steps:
- uses: actions/checkout@v2
with:
submodules: true

- uses: haskell/actions/setup@v1
name: Setup GHC and cabal-install
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v2
name: cache ~/.cabal/store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal

- name: build koka
run: |
cabal update
cabal build

- name: run tests
run: cabal test koka-test --test-show-details=direct
40 changes: 40 additions & 0 deletions .github/workflows/stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: stack

on:
push:
branches: [ci-stack, add/github-actions]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.4"]
ghc:
- "8.10.7"

steps:
- uses: actions/checkout@v2
with:
submodules: true

- uses: haskell/actions/setup@v1
name: Setup Stack
with:
enable-stack: true
stack-version: 'latest'
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v2
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack

- name: build koka
run: stack build --fast --no-run-tests --no-terminal --stack-yaml=./stack/stack-${{ matrix.ghc }}.yaml

- name: run tests
run: stack test --fast --stack-yaml=./stack/stack-${{ matrix.ghc }}.yaml
5 changes: 5 additions & 0 deletions stack/stack-8.10.7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resolver: lts-18.14
packages:
- '..'
extra-deps:
- isocline-1.0.5
19 changes: 19 additions & 0 deletions stack/stack-8.10.7.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages:
- completed:
hackage: isocline-1.0.5@sha256:ea9cbf9690cf3e252afd56c0e766678dc5f3aab9259a2ee6ec820a598fead989,2420
pantry-tree:
size: 2061
sha256: 47566421f3bd6dbeca6a21ab466c0a705337ba04ef05580368a83bd16df825f3
original:
hackage: isocline-1.0.5
snapshots:
- completed:
size: 586069
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/14.yaml
sha256: 87842ecbaa8ca9cee59a7e6be52369dbed82ed075cb4e0d152614a627e8fd488
original: lts-18.14