actions_test/.github/workflows/zig-build.yaml
lobo 70cc29cfb8
All checks were successful
GitHub Actions Demo / Explore-GitHub-Actions (push) Successful in 17s
GitHub Actions Demo / Job-2 (push) Successful in 6s
Add .github/workflows/zig-build.yaml
2024-04-29 18:51:54 +00:00

23 lines
536 B
YAML

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