upgrade to zig 0.13.0
All checks were successful
Generic zig build / build (push) Successful in 57s

This commit is contained in:
Emil Lerch 2024-06-08 10:28:36 -07:00
parent 31fe824a8b
commit edd65b7f92
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
4 changed files with 5 additions and 4 deletions

View File

@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: elerch/setup-zig@v3
with:
version: 0.12.0
version: 0.13.0
- uses: elerch/zig-action-cache@v1.1.6
- name: Build project
run: zig build --summary all

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
zig-cache
zig-out
.zig-cache

View File

@ -6,7 +6,7 @@ RUN apt-get update \
ca-certificates \
curl \
xz-utils \
&& curl https://ziglang.org/download/0.12.0/zig-linux-x86_64-0.12.0.tar.xz | tar -C /usr/local/ -xJ \
&& curl https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz | tar -C /usr/local/ -xJ \
&& apt-get -y remove curl xz-utils \
&& ln -s /usr/local/zig*/zig /usr/local/bin \
&& rm -rf /var/lib/apt/lists/*

View File

@ -19,7 +19,7 @@ pub fn build(b: *std.Build) void {
.name = "fontfinder",
// In this case the main source file is merely a path, however, in more
// complicated build scripts, this could be a generated file.
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
@ -59,7 +59,7 @@ pub fn build(b: *std.Build) void {
// Creates a step for unit testing. This only builds the test executable
// but does not run it.
const unit_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});