CI: fix tests
This commit is contained in:
parent
90867df2b7
commit
11f7e1ad82
10
ci/launcher
10
ci/launcher
|
@ -3,6 +3,16 @@ set -xeuo pipefail
|
||||||
|
|
||||||
ZIG=${ZIG:-bazel run "$@" @zig_sdk//:zig --}
|
ZIG=${ZIG:-bazel run "$@" @zig_sdk//:zig --}
|
||||||
|
|
||||||
|
for target in \
|
||||||
|
aarch64-linux-gnu.2.19 \
|
||||||
|
aarch64-macos-none \
|
||||||
|
x86_64-linux-gnu.2.19 \
|
||||||
|
x86_64-macos-none \
|
||||||
|
x86_64-windows-gnu
|
||||||
|
do
|
||||||
|
$ZIG build-exe -fno-emit-bin -target $target toolchain/launcher.zig
|
||||||
|
done
|
||||||
|
|
||||||
# until bazel-zig-cc gets a zig toolchain, run launcher's unit tests here.
|
# until bazel-zig-cc gets a zig toolchain, run launcher's unit tests here.
|
||||||
$ZIG test toolchain/launcher.zig
|
$ZIG test toolchain/launcher.zig
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ pub fn main() u8 {
|
||||||
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
.early_ok => return 0,
|
.early_ok => return 0,
|
||||||
.early_err => |msg| return fatal(msg),
|
.early_err => |msg| return fatal("{s}", .{msg}),
|
||||||
.exec => |params| {
|
.exec => |params| {
|
||||||
if (builtin.os.tag == .windows)
|
if (builtin.os.tag == .windows)
|
||||||
return spawnWindows(arena, params)
|
return spawnWindows(arena, params)
|
||||||
|
@ -240,7 +240,7 @@ fn parseFatal(
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn fatal(comptime fmt: []const u8, args: anytype) u8 {
|
pub fn fatal(comptime fmt: []const u8, args: anytype) u8 {
|
||||||
fmt.debug.print(fmt, args);
|
std.debug.print(fmt, args);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue