Skip to content

Commit

Permalink
Add cabal.project workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Mar 16, 2024
1 parent c403029 commit ed518de
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cabal.project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test cabal.project files

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]
ghc: ["8.10.7", "9.0.2", "9.2.8", "9.4.8"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'

- name: Run build
run: |
env
ghcup --version
ghcup run -i --cabal latest --ghc ${GHC_VER} -- cabal build --project-file=cabal.ghc${GHC_VER//./}.project
env:
GHC_VER: ${{ matrix.ghc }}

0 comments on commit ed518de

Please sign in to comment.