mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-25 07:42:15 +00:00
35 lines
769 B
YAML
35 lines
769 B
YAML
# Base: https://github.com/haskell/actions/tree/main/setup#usage
|
|
|
|
name: build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: build
|
|
runs-on: ubuntu-latest # TODO matrix testing
|
|
steps:
|
|
- name: Clone project
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Stack
|
|
uses: haskell/actions/setup@v1
|
|
with:
|
|
ghc-version: '8.8.4'
|
|
# cabal-version: 'latest'. Omitted, but defaults to 'latest'
|
|
enable-stack: true
|
|
stack-version: 'latest'
|
|
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.stack
|
|
key: ${{ runner.os }}-${{ hashFiles('stack.yaml') }}
|
|
|
|
- name: Build and run tests
|
|
run: stack build --test
|