Skip to content

[update] CI: fix it for linux and add new workflows for windows #4

[update] CI: fix it for linux and add new workflows for windows

[update] CI: fix it for linux and add new workflows for windows #4

Workflow file for this run

name: ci
on:
pull_request:
branches:
- trunk
jobs:
examples:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
runs-on: "${{ matrix.os }}"
steps:
- uses: tiawl/[email protected]
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
with:
version: ${{ env.zig_version }}
- name: Test building examples
shell: bash
run:
zig build --build-file "${GITHUB_WORKSPACE}/examples/build.zig"
- name: Run examples
shell: bash
run:
env -C ./examples ./zig-out/bin/examples