Skip to content

Commit 92c64e4

Browse files
committed
fix(ci): reenable lua 5.1 testing
1 parent c035e61 commit 92c64e4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build/patch.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ pub fn main() !void {
1717
const patch_file = patch_file: {
1818
const patch_file = try std.fs.cwd().openFile(patch_file_path, .{ .mode = .read_only });
1919
defer patch_file.close();
20-
break :patch_file try patch_file.readToEndAlloc(allocator, std.math.maxInt(usize));
20+
var buf: [4096]u8 = undefined;
21+
var reader = patch_file.reader(&buf);
22+
break :patch_file try reader.interface.allocRemaining(allocator, .unlimited);
2123
};
2224
const chunk_details = Chunk.init(allocator, patch_file, 0) orelse @panic("No chunk data found");
2325

makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ test_zig_nightly:
1313

1414
zig build -Dlang=luajit
1515

16-
# A subset of tests that are expected to work also on zig-0.14
16+
# A subset of tests that are expected to work also on stable builds of zig
1717
test_zig_stable:
18+
zig build test --summary failures -Dlang=lua51
1819
zig build test --summary failures -Dlang=lua52
1920
zig build test --summary failures -Dlang=lua53
2021
zig build test --summary failures -Dlang=lua54

0 commit comments

Comments
 (0)