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

This commit is contained in:
Emil Lerch 2024-06-08 10:01:40 -07:00
parent 9d11086972
commit ef5b793882
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
2 changed files with 4 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

View File

@ -19,7 +19,7 @@ pub fn build(b: *std.Build) !void {
.name = "lambda-zig",
// 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/lambda.zig" },
.root_source_file = b.path("src/lambda.zig"),
.target = target,
.optimize = optimize,
});
@ -38,7 +38,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 main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/lambda.zig" },
.root_source_file = b.path("src/lambda.zig"),
.target = target,
.optimize = optimize,
});
@ -53,7 +53,7 @@ pub fn build(b: *std.Build) !void {
const exe = b.addExecutable(.{
.name = "custom",
.root_source_file = .{ .path = "src/sample-main.zig" },
.root_source_file = b.path("src/sample-main.zig"),
.target = target,
.optimize = optimize,
});