- Build from source:
git clone https://codeberg.org/tensorush/liza.git
cd liza/
zig build exe -- -h
- Download latest release:
wget https://github.com/tensorush/liza/releases/latest/download/<archive>
tar -xf <archive> # Unix
unzip <archive> # Windows
./<binary> -h
- Add
liza
dependency tobuild.zig.zon
:
zig fetch --save git+https://codeberg.org/tensorush/liza.git
- Use
liza
dependency inbuild.zig
:
const liza_dep = b.dependency("liza", .{
.target = target,
.optimize = optimize,
});
const liza_mod = liza_dep.module("liza");
<std.Build.Step.Compile>.root_module.addImport("liza", liza_mod);
-
- Public API module creation.
- Dependency package usage.
- Build steps:
install
(default): All-step execution, except forrun
andrelease
.exe
: Zig executable installation.run
: Zig executable run.doc
($d
): Documentation emission (--add-doc
).test
: Test suite execution.cov
($c
): Code coverage generation (--add-cov
).fmt
: Formatting check execution.release
: Binary release.
-
- Public root module creation.
- Build steps:
install
(default): All-step execution, except forexample-run
.lib
: Zig static library installation.doc
($d
): Documentation emission (--add-doc
).example
: Example suite installation.example-run
: Example suite run.test
: Test suite execution.cov
($c
): Code coverage generation (--add-cov
).fmt
: Formatting check execution.
-
- Public Translate-C module creation.
- Lazy dependency package usage.
- Configuration option usage.
- Build steps:
install
(default): All-step execution.lib
: C/C++ static library installation.test
: Test suite execution.fmt
: Formatting check execution.
-
- WGSL shader usage.
- Build steps:
-
GitHub / Forgejo / Woodpecker CI Workflow Template:
run
/example
/lib
/exe
($s
): eitherexe
's executable run,lib
's example suite execution,bld
's library installation, orapp
's executable installation.test
: Test suite execution and eitherexe
's orlib
's GitHub-only code coverage publication to Codecov (--add-cov
).fmt
: Formatting check execution.
-
GitHub / Forgejo / Woodpecker CD Workflow Template (
--add-doc
):emit
→deploy
: eitherexe
's orlib
's documentation emission and deployment to GitHub Pages or Codeberg Pages:- (Woodpecker-only) Generate Codeberg access token with
repository:write
permission and add it asTOKEN
secret available onPush
event. - (Woodpecker-only) Add email as
EMAIL
secret available onPush
event.
- (Woodpecker-only) Generate Codeberg access token with
-
GitHub / Woodpecker Release Workflow:
release
:exe
's release publication usingminisign
:- Generate key pair without password:
minisign -GW
. - Add
./minisign.pub
asMINISIGN_PUBLIC_KEY
secret (available onTag
event in Woodpecker). - Add
~/.minisign/minisign.key
asMINISIGN_SECRET_KEY
secret (available onTag
event in Woodpecker). - (Woodpecker-only) Generate Codeberg access token with
misc:read
andrepository:write
permissions and add it asTOKEN
secret available towoodpeckerci/plugin-release
onTag
event.
- Generate key pair without password:
-
$y
: Current year.$n
: User name.
-
$c
: Code coverage artifacts.