Skip to main content

Build and test Zig applications

This guide will help you build and test Zig applications with FluentCI.

Before you begin

The instructions on this page assume that you are familiar with Zig. In addition:

  • Be familiar with creating Zig-based applications.
  • Have your Zig project ready, including test files.

Using the Zig Plugin

You can use FluentCI to build and test Zig applications using the zig plugin, no need to install Zig on your machine, FluentCI will handle everything for you.

The following commands can be used to build and test Zig applications:

fluentci run --wasm zig test
fluentci run --wasm zig build

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to build and test Zig applications:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: test
run: fluentci run --wasm zig test
- name: build
run: fluentci run --wasm zig build