Skip to content

Commit 0222e07

Browse files
committed
chore(ci): add Zig 0.15.1 to CI matrix and version checks
- update CI workflow to test against Zig 0.15.1 - extend endian switch statements to support Zig 0.16 in msgpack.zig
1 parent f9113d9 commit 0222e07

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest]
16-
version: [0.14.0, ""]
16+
version: [0.14.0, 0.15.1, ""]
1717
fail-fast: false
1818
runs-on: ${{ matrix.os }}
1919
steps:

src/msgpack.zig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ const comptimePrint = std.fmt.comptimePrint;
1010
const native_endian = builtin.cpu.arch.endian();
1111

1212
const big_endian = switch (current_zig.minor) {
13-
11 => std.builtin.Endian.Big,
14-
12, 13, 14, 15 => std.builtin.Endian.big,
15-
else => @compileError("not support current version zig"),
13+
11 => std.builtin.Endian.Big,
14+
12, 13, 14, 15, 16 => std.builtin.Endian.big,
15+
else => @compileError("not support current version zig"),
1616
};
1717
const little_endian = switch (current_zig.minor) {
18-
11 => std.builtin.Endian.Little,
19-
12, 13, 14, 15 => std.builtin.Endian.little,
20-
else => @compileError("not support current version zig"),
18+
11 => std.builtin.Endian.Little,
19+
12, 13, 14, 15, 16 => std.builtin.Endian.little,
20+
else => @compileError("not support current version zig"),
2121
};
2222

2323
/// the Str Type

0 commit comments

Comments
 (0)