Add .github/workflows/zig-build.yaml
All checks were successful
GitHub Actions Demo / Explore-GitHub-Actions (push) Successful in 17s
GitHub Actions Demo / Job-2 (push) Successful in 6s

This commit is contained in:
lobo 2024-04-29 18:51:54 +00:00
parent bd70ca2303
commit 70cc29cfb8

23
.github/workflows/zig-build.yaml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Generic zig build
on:
workflow_call:
inputs:
zig-version:
required: true
type: string
# secrets:
# token:
# required: true
jobs:
build:
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Zig
uses: https://git.lerch.org/lobo/setup-zig@v3
with:
version: ${{ inputs.zig-version }}
- name: Build project
run: zig build
- name: Run tests
run: zig build test