tensorush/liza
1
6
Fork
You've already forked liza
0
Zig codebase initializer.
  • Zig 100%
2025年12月02日 06:08:26 +03:00
.github/workflows chore: update action versions 2025年12月02日 06:08:26 +03:00
src chore: update action versions 2025年12月02日 06:08:26 +03:00
.gitattributes style: improve comments 2025年02月08日 14:47:30 +03:00
.gitignore feat: run git init in new codebase by default 2025年02月25日 14:49:46 +03:00
build.zig fix: release custom step 2025年08月31日 21:25:46 +03:00
build.zig.zon chore: update Zig 2025年10月12日 15:15:25 +03:00
LICENSE chore 2025年11月28日 12:58:10 +03:00
README.md feat(exe/lib): custom build steps 2025年08月31日 21:36:43 +03:00

liza

Zig codebase initializer.

Usage

Executable

  • Build from source:
git clone https://codeberg.org/tensorush/liza.git
cd liza/
zig build run -- -h
  • Download latest release:
wget https://github.com/tensorush/liza/releases/latest/download/<archive>
tar -xf <archive> # Unix
unzip <archive> # Windows
./<binary> -h

Features

  • Zig Executable Template (exe):

    • Public API module creation.
    • Dependency package usage.
    • Build steps:
      • install (default):
        • Zig executable installation.
        • Common build steps execution (see below).
      • run: Zig executable run.
      • Custom build steps (see below).
      • Optional build steps (see below).
    • Common build options exposure (see below).
  • Zig Library Template (lib):

    • Public root module creation.
    • Build steps:
      • install (default):
        • Zig static library installation.
        • Common build steps execution (see below).
      • run: Example suite execution.
      • Custom build steps, except release (see below).
      • Optional build steps (see below).
    • Common build options exposure (see below).
  • Zig Build Template (bld):

    • Public Translate-C module creation.
    • Lazy dependency package usage.
    • Configuration option usage.
    • Build steps:
      • install (default):
        • C/C++ static library installation.
        • Common build steps execution (see below).
  • Common Build Steps:

    • test: Test suite execution.
    • fmt: Formatting check execution.
  • Custom Build Steps:

    • tag: Next version tag with Zq.
    • update: Dependencies and minimum Zig version update with Zq.
    • release: Archived binary release with Tar (Unix) and Zip (Windows).
  • Optional Build Steps:

  • Common Build Options:

    • -Ddebug: Test suite execution under LLDB debugger.
    • -Dstrip: Compilation without stack trace printing code.
    • -Dprofile: Compilation with Tracy profiler Zig bindings support.
    • -Dno-bin -fincremental --watch: Incremental compilation without binary emission.
  • GitHub / Forgejo / Woodpecker CI Workflow Template Jobs:

    • install:
      • Main artifacts' installation.
      • test: Test suite execution.
      • fmt: Formatting check execution.
      • (GitHub-only) cov ($c): Kcov source code coverage publication to Codecov (-c, cov).
  • GitHub / Forgejo / Woodpecker CD Workflow Template Jobs:

    • (exe-/lib-only) emitdeploy: Documentation emission and deployment to GitHub Pages or Codeberg Pages (-d, doc):
      • (Woodpecker-only) Generate Codeberg access token with repository:write permission and add it as TOKEN secret available on Push event.
      • (Woodpecker-only) Add email as EMAIL secret available on Push event.
  • GitHub / Woodpecker Release Workflow Jobs:

    • (exe-only) release: Release publication using minisign:
      • Generate key pair without password: minisign -GW.
      • Add ./minisign.pub as MINISIGN_PUBLIC_KEY secret (available on Tag event in Woodpecker).
      • Add ~/.minisign/minisign.key as MINISIGN_SECRET_KEY secret (available on Tag event in Woodpecker).
      • (Woodpecker-only) Generate Codeberg access token with misc:read and repository:write permissions and add it as TOKEN secret available to woodpeckerci/plugin-release on Tag event.
  • MIT License Template:

    • $y: Current year.
    • $n: User name.
  • .gitignore Template:

  • .gitattributes.