Skip to content

Commit 1a18506

Browse files
authored
fix(build)!: update to zig 0.14.0 (#136)
* fix(build)!: update to zig 0.14.0 BREAKING: this PR changes the package name from `ziglua` to `lua_wrapper`. not using `zig` in the package name has been repeatedly communicated as best practices, analogous to `npm`'s naming guidelines. for this particular package, this is complicated by the fact that `ziglua` provides far more than just `lua` packaged for Zig's build system (which already exists in numerous places), but also aims to provide ergonomic and powerful Zig abstractions on top of the Lua C implementation. For this reason, I chose to add "bindings" to the name. NB - the "fingerprint" field in build.zig.zon is new in Zig 0.14.0 and is computed in part based on the name. once we have settled on the name, if it is not "lua_wrapper" it will be necessary to delete the fingerprint line and regenerated it. * fix(ci): update build runners to zig 0.14.0 * package: lua_bindings -> lua_wrapper
1 parent 00a3c39 commit 1a18506

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/configure-pages@v5
2828
- uses: mlugg/setup-zig@v1
2929
with:
30-
version: 0.14.0-dev.3259+0779e847f
30+
version: 0.14.0
3131
- run: make docs
3232
- name: Upload artifact
3333
uses: actions/upload-pages-artifact@v3

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Zig
2121
uses: mlugg/setup-zig@v1
2222
with:
23-
version: 0.14.0-dev.3259+0779e847f
23+
version: 0.14.0
2424

2525
- name: Run tests
2626
run: make test

build.zig.zon

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.{
2-
.name = "ziglua",
2+
.name = .lua_wrapper,
3+
.fingerprint = 0xb40fd4eedb02233b, // changing this has security and trust implications
34
.version = "0.1.0",
45
.paths = .{ "build.zig", "build.zig.zon", "src", "license", "include", "build" },
56

0 commit comments

Comments
 (0)