Skip to content

Commit e803f21

Browse files
committed
update to Zig 0.17.0
1 parent ea52a4a commit e803f21

3 files changed

Lines changed: 10 additions & 13 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
zig-version: [0.16.0]
17+
zig-version: [latest]
1818
os: [ubuntu-latest, macos-latest, windows-latest]
19-
include:
20-
- zig-version: master
21-
os: ubuntu-latest
2219
runs-on: ${{ matrix.os }}
2320
steps:
2421
- name: Checkout

‎build.zig‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub fn build(b: *std.Build) void {
8080
const host_wayland = if (!use_system_wayland_scanner)
8181
b.lazyDependency("wayland", .{
8282
.target = b.graph.host,
83-
.optimize = std.builtin.OptimizeMode.Debug,
83+
.optimize = std.builtin.OptimizeMode.debug,
8484
})
8585
else
8686
null;
@@ -93,7 +93,7 @@ pub fn build(b: *std.Build) void {
9393
"wayland-protocols",
9494
"--variable=pkgdatadir",
9595
});
96-
break :blk .{ .cwd_relative = std.mem.trim(u8, pkgdatadir, &std.ascii.whitespace) };
96+
break :blk b.graph.cwdRelativePath(std.mem.trim(u8, pkgdatadir, &std.ascii.whitespace));
9797
} else if (b.lazyDependency("wayland_protocols", .{})) |wayland_protocols|
9898
wayland_protocols.path(".")
9999
else
@@ -105,18 +105,18 @@ pub fn build(b: *std.Build) void {
105105
run_wayland_scanner1.addArg("wayland-scanner");
106106
run_wayland_scanner2.addArg("wayland-scanner");
107107
} else if (host_wayland) |wayland_host| {
108-
run_wayland_scanner1.addArtifactArg(wayland_host.artifact("wayland-scanner"));
109-
run_wayland_scanner2.addArtifactArg(wayland_host.artifact("wayland-scanner"));
108+
run_wayland_scanner1.addArtifactArg2(wayland_host.artifact("wayland-scanner"), .{});
109+
run_wayland_scanner2.addArtifactArg2(wayland_host.artifact("wayland-scanner"), .{});
110110
}
111111

112112
run_wayland_scanner1.addArg("client-header");
113-
run_wayland_scanner1.addFileArg(wayland_protocols.path(b, "unstable/xdg-foreign/xdg-foreign-unstable-v1.xml"));
114-
const header_file = run_wayland_scanner1.addOutputFileArg("xdg-foreign-unstable-v1.h");
113+
run_wayland_scanner1.addFileArg2(wayland_protocols.path(b, "unstable/xdg-foreign/xdg-foreign-unstable-v1.xml"), .{});
114+
const header_file = run_wayland_scanner1.addOutputFileArg2("xdg-foreign-unstable-v1.h", .{});
115115
nfd.root_module.addIncludePath(header_file.dirname());
116116

117117
run_wayland_scanner2.addArg("public-code");
118-
run_wayland_scanner2.addFileArg(wayland_protocols.path(b, "unstable/xdg-foreign/xdg-foreign-unstable-v1.xml"));
119-
const source_file = run_wayland_scanner2.addOutputFileArg("xdg-foreign-unstable-v1.c");
118+
run_wayland_scanner2.addFileArg2(wayland_protocols.path(b, "unstable/xdg-foreign/xdg-foreign-unstable-v1.xml"), .{});
119+
const source_file = run_wayland_scanner2.addOutputFileArg2("xdg-foreign-unstable-v1.c", .{});
120120
nfd.root_module.addCSourceFile(.{ .file = source_file });
121121
}
122122
}

‎build.zig.zon‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.{
22
.name = .nativefiledialog_extended,
33
.version = "1.4.1",
4-
.minimum_zig_version = "0.16.0",
4+
.minimum_zig_version = "0.17.0",
55
.dependencies = .{
66
.@"nativefiledialog-extended" = .{
77
.url = "git+https://github.com/btzy/nativefiledialog-extended.git?ref=v1.4.1#65b2f070a0fcfee0d453a64e770a217ab0b6ff4f",

0 commit comments

Comments
 (0)