Skip to content

CI

CI #9

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
zig-version: [master]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ matrix.zig-version }}
- name: Check Formatting
if: runner.os != 'Windows' # zig fmt failing on Windows CI, unclear why
run: zig fmt --ast-check --check .
- name: Build for Windows
run: zig build example -Dtarget=x86_64-windows-gnu --summary all
- name: Build for Linux
run: zig build example -Dtarget=x86_64-linux-gnu --summary all