Skip to content

BuildRunner

BuildRunner #405

Workflow file for this run

name: BuildRunner
on:
push:
paths:
- ".github/workflows/build_runner.yml"
- "src/build_runner/**"
pull_request:
paths:
- ".github/workflows/build_runner.yml"
- "src/build_runner/**"
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
check_build_runner:
if: github.repository_owner == 'zigtools'
strategy:
matrix:
zig_version: [master, 0.11.0]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Grab zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ matrix.zig_version }}
- name: Create temp zig project
run: |
mkdir $RUNNER_TEMP/TEMP_ZIG_PROJECT
cd $RUNNER_TEMP/TEMP_ZIG_PROJECT
zig init-exe
- name: Check build_runner builds
run: |
cd $RUNNER_TEMP/TEMP_ZIG_PROJECT
zig build --build-runner $GITHUB_WORKSPACE/src/build_runner/${{ matrix.zig_version }}*.zig