Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 34 additions & 14 deletions .github/workflows/zig_test.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,55 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ["main"]
branches: [main]
pull_request:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
branches: [main]
workflow_dispatch:

permissions:
contents: read

jobs:
test:
name: Test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: mlugg/setup-zig@v1
- uses: actions/checkout@v6
- uses: mlugg/setup-zig@v2
with:
version: 0.16.0
- run: zig build test
lint:

cross-build:
name: Build (${{ matrix.target }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- x86_64-linux
- aarch64-linux
- x86_64-windows
- aarch64-macos
steps:
- uses: actions/checkout@v6
- uses: mlugg/setup-zig@v2
with:
version: 0.16.0
cache-key: ${{ matrix.target }}
- run: zig build -Dtarget=${{ matrix.target }}

format:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mlugg/setup-zig@v1
- uses: actions/checkout@v6
- uses: mlugg/setup-zig@v2
with:
version: 0.16.0
- run: zig fmt --check .
Loading
Loading