Skip to content

Commit 0a452e1

Browse files
committed
Require Zig 0.15.0-dev.1018+1a998886c or later
Support for Zig 0.14 will be maintained in a separate branch.
1 parent 435ac3b commit 0a452e1

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
matrix:
1717
zig-version: [master]
1818
os: [ubuntu-22.04, macos-latest, windows-latest]
19-
include:
20-
- zig-version: "0.14.0"
21-
os: ubuntu-22.04
2219
runs-on: ${{ matrix.os }}
2320
steps:
2421
- name: Checkout

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Provides the necessary building blocks to develop Language Server Protocol imple
1010
## Installation
1111

1212
> [!NOTE]
13-
> The minimum supported Zig version is `0.14.0`.
13+
> The default branch requires Zig `0.15.0-dev.1018+1a998886c` or later. Checkout the `0.14.x` branch when using Zig 0.14
1414
1515
```bash
1616
# Initialize a `zig build` project if you haven't already

build.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
const std = @import("std");
22
const builtin = @import("builtin");
33

4-
const minimum_zig_version = std.SemanticVersion.parse("0.14.0") catch unreachable;
4+
const minimum_zig_version = "0.15.0-dev.1018+1a998886c";
55

66
pub fn build(b: *std.Build) void {
7-
comptime if (builtin.zig_version.order(minimum_zig_version) == .lt) {
7+
comptime if (builtin.zig_version.order(std.SemanticVersion.parse("0.15.0-dev.1018+1a998886c") catch unreachable) == .lt) {
88
@compileError(std.fmt.comptimePrint(
99
\\Your Zig version does not meet the minimum build requirement:
10-
\\ required Zig version: {[minimum_zig_version]}
11-
\\ actual Zig version: {[current_version]}
10+
\\ required Zig version: {[minimum_zig_version]s}
11+
\\ actual Zig version: {[current_version]s}
1212
\\
1313
, .{
14-
.current_version = builtin.zig_version,
14+
.current_version = builtin.zig_version_string,
1515
.minimum_zig_version = minimum_zig_version,
1616
}));
1717
};

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.{
22
.name = .lsp_codegen,
33
.version = "0.1.0",
4-
.minimum_zig_version = "0.14.0",
4+
.minimum_zig_version = "0.15.0-dev.1023+f551c7c58",
55
.dependencies = .{},
66
.paths = .{
77
"build.zig",

0 commit comments

Comments
 (0)