Skip to content

Merge pull request #9 from zcg/fix/windows-zls-exe-name #49

Merge pull request #9 from zcg/fix/windows-zls-exe-name

Merge pull request #9 from zcg/fix/windows-zls-exe-name #49

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
build:
name: Build (${{ matrix.target }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- target: native
os: ubuntu-latest
- target: x86_64-linux
os: ubuntu-latest
- target: aarch64-linux
os: ubuntu-latest
- target: x86_64-macos
os: macos-latest
- target: aarch64-macos
os: macos-latest
- target: x86_64-windows-gnu
os: windows-latest
- target: aarch64-windows-gnu
os: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: '0.16.0'
- name: Build
run: zig build -Dtarget=${{ matrix.target }}
shell: bash
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: '0.16.0'
- name: Run tests
run: zig build test
shell: bash
lint:
name: Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: '0.16.0'
- name: Check formatting
run: zig fmt --check src/
shell: bash