No description
  • Zig 97.3%
  • Nix 1.9%
  • Shell 0.8%
Find a file
2026-05-17 19:50:14 -05:00
hooks release v1.1.0 2026-05-17 19:50:14 -05:00
LICENSES prep for v1.0.0 2026-05-03 01:37:31 -05:00
src use built-n archive deiagnostics to determine root dir 2026-05-17 19:48:48 -05:00
.gitattributes windows updates 2026-05-02 23:35:34 -05:00
.gitignore debugging 2026-05-01 19:50:14 -05:00
build.zig prep for v1.0.0 2026-05-03 01:37:31 -05:00
build.zig.zon prep for v1.0.0 2026-05-03 01:37:31 -05:00
flake.lock use built-n archive deiagnostics to determine root dir 2026-05-17 19:48:48 -05:00
flake.nix prep for v1.0.0 2026-05-03 01:37:31 -05:00
plugin.yml prep for v1.0.0 2026-05-03 01:37:31 -05:00
README.md release v1.1.0 2026-05-17 19:50:14 -05:00
REUSE.toml prep for v1.0.0 2026-05-03 01:37:31 -05:00
typos.toml prep for v1.0.0 2026-05-03 01:37:31 -05:00

Install Zig on your Buildkite agent

Example

steps:
  - command: zig env
    plugins:
      - jcollie/install-zig#v1.1.0

Configuration

Developing

Building the binaries

To build the binaries, you'll need Zig 0.16.0 installed. There is a Nix flake that can be used to set up a development environment:

nix develop

Zig can also be installed in whatever other means you like. There are no external dependencies that won't be fetched by Zig during the build process.

To build a debug version of the binary for your local system, run:

zig build

The binary will be available as

This command will run Zig's unit tests:

zig build tests

To build the "release" binaries, run:

zig build release

The binaries will be written to the source tree at hooks/pre-command-<arch>-<os> and should be committed to the repo. This command should be run before any commit to ensure that the binaries are up-to-date.

BuildKite tests

To run the tests:

podman run -it --rm -v "$PWD:/plugin:ro" docker.io/buildkite/plugin-linter --id jcollie/install-zig