actions_test/.github/workflows/zig-build.yaml

24 lines
552 B
YAML
Raw Permalink Normal View History

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
run: zig build test --summary all