Add stack.yaml workflow

This commit is contained in:
Julian Ospald 2024-03-16 16:26:28 +08:00
parent 6801bf9d88
commit 65bf155326
No known key found for this signature in database
GPG Key ID: 4275CDA6A29BED43
1 changed files with 35 additions and 0 deletions

35
.github/workflows/stack.yaml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Test stack.yaml
on:
push:
branches:
- master
tags:
- 'v*'
pull_request:
branches:
- master
schedule:
- cron: '0 2 * * *'
jobs:
build:
name: Build binary
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, macOS-11, windows-latest, ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Run build
run: |
env
ghcup --version
ghcup run -i --stack latest -- stack build
shell: bash