Skip to content

Update zig to 0.13.0-dev.46+3648d7df1 #25

Update zig to 0.13.0-dev.46+3648d7df1

Update zig to 0.13.0-dev.46+3648d7df1 #25

Workflow file for this run

name: Test
permissions:
checks: write
on:
pull_request:
branches:
- main
- unstable
paths:
- ".github/workflows/**"
- "src/**"
- "examples/**"
- "libs/**"
- "tools/**"
- "build.zig"
- "build.zig.zon"
- ".zigversion"
push:
branches:
- main
paths:
- ".github/workflows/**"
- "src/**"
- "examples/**"
- "libs/**"
- "tools/**"
- "build.zig"
- "build.zig.zon"
- ".zigversion"
concurrency:
# Cancels pending runs when a PR gets updated.
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
jobs:
validation:
name: Validation
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Read .zig-version
id: zigversion
uses: juliangruber/read-file-action@v1
with:
path: ./.zigversion
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ steps.zigversion.outputs.content }}
- name: Lint
run: zig fmt --check .
build-examples:
needs: ["validation"]
strategy:
fail-fast: false
matrix:
os: [linux-large, macos-13-large, windows-large]
runs-on: ${{matrix.os}}
name: "Build examples"
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Read .zig-version
id: zigversion
uses: juliangruber/read-file-action@v1
with:
path: ./.zigversion
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ steps.zigversion.outputs.content }}
- name: Build examples
shell: bash
run: cd examples/ && zig build