Skip to content

Commit 70b6689

Browse files
committed
break change: support zig 0.14.0
Since then, 0.13.0 and previous versions cannot be supported
1 parent 72039fa commit 70b6689

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

.github/workflows/zig.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, macos-latest, windows-latest]
11-
version: [0.12.0, 0.13.0, '']
11+
version: [0.14.0, '']
1212
fail-fast: false
1313
runs-on: ${{ matrix.os }}
1414
steps:

build.zig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const Compile = Build.Step.Compile;
77
const Module = Build.Module;
88

99
const lib_name = "webui";
10-
const zig_ver = builtin.zig_version.minor;
1110
var global_log_level: std.log.Level = .warn;
1211

1312
/// Vendored dependencies of webui.
@@ -22,11 +21,6 @@ pub fn build(b: *Build) !void {
2221
const target = b.standardTargetOptions(.{});
2322
const optimize = b.standardOptimizeOption(.{});
2423

25-
switch (comptime zig_ver) {
26-
12, 13, 14 => {},
27-
else => return error.UnsupportedZigVersion,
28-
}
29-
3024
const is_dynamic = b.option(bool, "dynamic", "build the dynamic library") orelse false;
3125
const enable_tls = b.option(bool, "enable-tls", "enable TLS support") orelse false;
3226
const verbose = b.option(std.log.Level, "verbose", "set verbose output") orelse .warn;

build.zig.zon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.{
2-
.name = "webui",
2+
.name = .webui,
33
.version = "2.5.0-beta.3",
4+
.fingerprint = 0xac5d87f2e5831aa7,
45
.paths = .{
56
"src",
67
"include",

0 commit comments

Comments
 (0)