Skip to content

Fix C main and refactor testing scripts #28

Fix C main and refactor testing scripts

Fix C main and refactor testing scripts #28

Workflow file for this run

name: CI
on:
push:
branches:
- "master"
pull_request:
# Set the default shell on all platforms.
defaults:
run:
shell: sh
jobs:
################################################################################
# Build
################################################################################
build:
name: |
${{ matrix.name
|| format(
'{0} on {1}{2}',
startsWith(matrix.os, 'ubuntu-') && 'Build and Test' || startsWith(matrix.os, 'macOS-') && 'Build',
startsWith(matrix.os, 'ubuntu-') && 'Linux' || startsWith(matrix.os, 'macOS-') && 'macOS',
matrix.ghc-version && format(' with GHC {0}', matrix.ghc-version)
)
}}
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4
- name: 🛠️ Setup Haskell
id: setup-haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc-version }}
- name: 🏗️ Build
run: cabal build eventlog-socket
- name: 🛠️ Setup ghc-events
uses: ./.github/actions/setup-ghc-events
with:
ghc-events-version: "0.20.0.0"
ghc-version: ${{ matrix.ghc-version }}
- name: 🚀 Testing
run: ./ci.sh
strategy:
matrix:
os:
- "ubuntu-latest"
- "macOS-latest"
ghc-version:
- "9.2.8"
- "9.4.8"
- "9.6.7"
- "9.8.4"
- "9.10.2"
- "9.12.2"