Add .github/workflows/zig-build.yaml
This commit is contained in:
parent
bd70ca2303
commit
70cc29cfb8
23
.github/workflows/zig-build.yaml
vendored
Normal file
23
.github/workflows/zig-build.yaml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user