-
Notifications
You must be signed in to change notification settings - Fork 23
37 lines (37 loc) · 1.08 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
on:
- push
- pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ghc: ['8.0.2', '8.10.4']
os: [ubuntu-latest, macOS-latest, windows-latest]
name: Haskell GHC ${{ matrix.ghc }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Haskell
uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: 'latest'
- run: stack build
- run: stack install
- run: cp webify webify-linux-amd64
if: contains(matrix.os, 'ubuntu')
- run: cp webify webify-darwin-amd64
if: contains(matrix.os, 'mac')
- run: cp webify.exe webify-windows-amd64.exe
if: contains(matrix.os, 'windows')
- name: Release
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags') && matrix.ghc == '8.10.4' }}
with:
draft: true
files: |
webify-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}