fluent-ci-templates/zig-pipeline
A ready-to-use CI/CD Pipeline for Zig projects.
A ready-to-use CI/CD Pipeline for your Zig projects.
Run the following command in your project:
fluentci run zig_pipeline
Or, if you want to use it as a template:
fluentci init -t zig
This will create a .fluentci
folder in your project.
Now you can run the pipeline with:
fluentci run .
Use as a Dagger module:
dagger install github.com/fluent-ci-templates/zig-pipeline@main
Call a function from the module:
dagger -m github.com/fluent-ci-templates/zig-pipeline call \
test --src .
dagger -m github.com/fluent-ci-templates/zig-pipeline call \
build --src .
Variable | Description |
---|---|
ZIG_VERSION |
The version of Zig to use. Defaults to 0.10.1 |
Job | Description |
---|---|
test | Run tests |
build | Build project |
test(
src: Directory | string = ".",
version?: string
): Promise<string>
build(
src: Directory | string = ".",
version?: string
): Promise<Directory | string>
You can also use this pipeline programmatically:
import { test, build } from "jsr:@fluentci/zig";
await test();
await build();