Skip to content

CI

CI #75

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
types: [synchronize, opened, reopened]
push:
branches: [master]
schedule:
# additionally run once per week (At 00:00 on Sunday) to maintain cache
- cron: '0 0 * * 0'
jobs:
stack:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
stack: ["2.7.3"]
ghc: ["8.10.7"]
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1.2
name: Setup Haskell Stack
with:
ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }}
- uses: actions/cache@v2
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
- name: Install dependencies
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --only-dependencies
- name: Build
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --copy-bins --local-bin-path futr.AppDir/usr/bin
- uses: addnab/docker-run-action@v3
name: Create AppImage
with:
image: prolic/futr-dev:latest
options: -v ${{ github.workspace }}:/app -w /app
run: ./build-appimage.sh
- uses: actions/upload-artifact@v2
with:
name: AppImage
path: './*.AppImage*'