From 3178fa66843b05a6fd4060fcea67d4fa4119516f Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sat, 8 Jun 2024 10:22:23 -0700 Subject: [PATCH] upgrade to zig 0.13.0 --- .github/workflows/zig-build.yaml | 2 +- build.zig | 6 +++--- src/fontgen.zig | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/zig-build.yaml b/.github/workflows/zig-build.yaml index 960cadf..d63927b 100644 --- a/.github/workflows/zig-build.yaml +++ b/.github/workflows/zig-build.yaml @@ -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: Install system dependencies (Github) if: env.GITEA_ACTIONS != 'true' diff --git a/build.zig b/build.zig index b3e22b4..ce1bc2d 100644 --- a/build.zig +++ b/build.zig @@ -39,7 +39,7 @@ pub fn build(b: *std.Build) !void { const exe = b.addExecutable(.{ .name = "i2c", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); @@ -51,7 +51,7 @@ pub fn build(b: *std.Build) !void { const exe_fontgen = b.addExecutable(.{ .name = "fontgen", - .root_source_file = .{ .path = "src/fontgen.zig" }, + .root_source_file = b.path("src/fontgen.zig"), .target = target, .optimize = optimize, }); @@ -71,7 +71,7 @@ pub fn build(b: *std.Build) !void { run_step.dependOn(&run_cmd.step); const exe_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); diff --git a/src/fontgen.zig b/src/fontgen.zig index bebf461..f61b918 100644 --- a/src/fontgen.zig +++ b/src/fontgen.zig @@ -130,7 +130,7 @@ fn run(allocator: std.mem.Allocator, argv: []const []const u8) !void { var env_map = try std.process.getEnvMap(allocator); defer env_map.deinit(); - var child = std.ChildProcess.init(argv, allocator); + var child = std.process.Child.init(argv, allocator); child.stdin_behavior = .Ignore; child.stdout_behavior = .Inherit;