Skip to content

ci: Using mlugg github action for zig #20

ci: Using mlugg github action for zig

ci: Using mlugg github action for zig #20

Workflow file for this run

# 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"]
pull_request:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- run: zig build test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- run: zig fmt --check .