build(ci): bump zig to 0.15.1 and add more platforms

- Bump zig version to 0.15.1 and workaround zig fetch hang (ziglang/zig#24916)
- add mac os zig build (currently without luajit, linker failure)
- Add windows zig build, currently with very limited testing
This commit is contained in:
bfredl
2025-08-07 11:36:21 +02:00
parent 2debe2f30a
commit 0458a1e694
8 changed files with 95 additions and 33 deletions

View File

@@ -171,7 +171,7 @@ local ui_options_text = nil
for i = pre_args + 1, #arg do
local full_path = arg[i]
local parts = {} --- @type string[]
for part in full_path:gmatch('[^/]+') do
for part in full_path:gmatch('[^/\\]+') do
parts[#parts + 1] = part
end
headers[#headers + 1] = parts[#parts - 1] .. '/' .. parts[#parts]

View File

@@ -186,7 +186,7 @@ fn generate_header_for(
} else {
const h_file = gen_header(b, run_step, b.fmt("{s}.h.generated.h", .{basename}), gen_headers);
if (api_export) |api_files| {
try api_files.append(h_file);
try api_files.append(b.allocator, h_file);
}
}