Harmont docs
Examples

Zig

A Zig project: build, test, and fmt.

A Zig project: build, test, and fmt.

Project layout

build.zig
README.md

Pipeline

.hm/pipeline.py
"""Zig example pipeline."""from __future__ import annotationsimport harmont as hm@hm.pipeline(    "ci",    env={"CI": "true"},    default_image="ubuntu:24.04",    triggers=[hm.push(branch="main")],)def ci() -> tuple[hm.Step, ...]:    project = hm.zig(path=".")    return (        project.build(),        project.test(),        project.fmt(),    )
.hm/pipeline.ts
import { pipeline, push, type PipelineDefinition } from "@harmont/hm";import { zig } from "@harmont/hm/toolchains";const project = zig({ path: "." });const pipelines: PipelineDefinition[] = [  {    slug: "ci",    triggers: [push({ branch: "main" })],    pipeline: pipeline([project.build(), project.test(), project.fmt()], {      env: { CI: "true" },      defaultImage: "ubuntu:24.04",    }),  },];export default pipelines;

Run it

hm run ci

On this page