Eric Bower
·
2026-04-29
pico.sh
1#!/usr/bin/env bash
2set -xeo pipefail
3
4# This is a little experiement seeing how we could use zmx as a job engine for CI
5
6export ZMX_SESSION_PREFIX="ci-"
7
8zmx run build podman build -t zig .
9
10zmx run fmt -d podman run --rm -it -v "$(pwd)":/app zig zig fmt --check .
11zmx run test -d podman run --rm -it -v "$(pwd)":/app zig zig build test --summary all
12zmx run integration -d podman run --rm -it -v "$(pwd)":/app zig zig build test-integration
13zmx wait "*"
14
15zmx kill "*"
16echo "success!"