23 lines
536 B
YAML
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 |