Skip to content

mpl

mpl #9

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Setup Zig
uses: mlugg/setup-zig@v2
- name: Formatting
run: zig fmt .
- name: Build
run: zig build --summary all --release=safe
- name: Tests
run: zig build --summary all tests --release=safe
- name: Build docs
run: zig build --summary all --release=fast docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: zig-out/docs
pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4