2024-04-29 18:51:54 +00:00
|
|
|
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
|
2024-04-29 19:07:57 +00:00
|
|
|
run: zig build test --summary all
|