Skip to content

Commit 73ff580

Browse files
committed
No need to run library tests here now that each lib repo has it's own CI running tests.
1 parent b7f74b3 commit 73ff580

File tree

2 files changed

+1
-99
lines changed

2 files changed

+1
-99
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ jobs:
3434
run: zig fmt --check .
3535
- name: Build all
3636
run: zig build -Dexperiments
37-
- name: Build and run tests
38-
run: zig build test
3937
- name: Cross compile
4038
if: runner.os == 'Linux'
4139
run: zig build -Dtarget=x86_64-windows-gnu

build.zig

Lines changed: 1 addition & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ pub fn build(b: *std.Build) void {
8181
}
8282
}
8383

84-
{ // Tests
85-
const test_step = b.step("test", "Run all tests");
86-
tests(b, target, optimize, test_step);
87-
}
88-
8984
{ // Benchmarks
9085
const benchmark_step = b.step("benchmark", "Run all benchmarks");
9186
const zmath = b.dependency("zmath", .{
@@ -126,6 +121,7 @@ pub const samples_windows_linux = struct {
126121

127122
pub const samples_cross_platform = struct {
128123
pub const sdl2_demo = @import("samples/sdl2_demo/build.zig");
124+
pub const sdl3_demo = @import("samples/sdl3_demo/build.zig");
129125

130126
// OpenGL samples
131127
pub const minimal_glfw_gl = @import("samples/minimal_glfw_gl/build.zig");
@@ -232,98 +228,6 @@ fn buildAndInstallSamplesWeb(b: *std.Build, options: anytype) void {
232228
}
233229
}
234230

235-
fn tests(
236-
b: *std.Build,
237-
target: std.Build.ResolvedTarget,
238-
optimize: std.builtin.OptimizeMode,
239-
test_step: *std.Build.Step,
240-
) void {
241-
// TODO: Renable randomly failing zaudio tests on windows
242-
if (target.result.os.tag != .windows) {
243-
const zaudio = b.dependency("zaudio", .{
244-
.target = target,
245-
.optimize = optimize,
246-
});
247-
test_step.dependOn(&b.addRunArtifact(zaudio.artifact("zaudio-tests")).step);
248-
}
249-
250-
// TODO: Get zbullet tests working on Windows again
251-
if (target.result.os.tag != .windows) {
252-
const zbullet = b.dependency("zbullet", .{
253-
.target = target,
254-
.optimize = optimize,
255-
});
256-
test_step.dependOn(&b.addRunArtifact(zbullet.artifact("zbullet-tests")).step);
257-
}
258-
259-
const zflecs = b.dependency("zflecs", .{
260-
.target = target,
261-
.optimize = optimize,
262-
});
263-
test_step.dependOn(&b.addRunArtifact(zflecs.artifact("zflecs-tests")).step);
264-
265-
const zgpu = b.dependency("zgpu", .{
266-
.target = target,
267-
.optimize = optimize,
268-
});
269-
test_step.dependOn(&b.addRunArtifact(zgpu.artifact("zgpu-tests")).step);
270-
271-
const zgui = b.dependency("zgui", .{
272-
.target = target,
273-
.optimize = optimize,
274-
.with_te = true,
275-
});
276-
test_step.dependOn(&b.addRunArtifact(zgui.artifact("zgui-tests")).step);
277-
278-
const zmath = b.dependency("zmath", .{
279-
.target = target,
280-
.optimize = optimize,
281-
});
282-
test_step.dependOn(&b.addRunArtifact(zmath.artifact("zmath-tests")).step);
283-
284-
const zmesh = b.dependency("zmesh", .{
285-
.target = target,
286-
.optimize = optimize,
287-
});
288-
test_step.dependOn(&b.addRunArtifact(zmesh.artifact("zmesh-tests")).step);
289-
290-
test_step.dependOn(&b.addRunArtifact(b.dependency("zphysics", .{
291-
.target = target,
292-
.optimize = optimize,
293-
.use_double_precision = false,
294-
}).artifact("zphysics-tests")).step);
295-
296-
test_step.dependOn(&b.addRunArtifact(b.dependency("zphysics", .{
297-
.target = target,
298-
.optimize = optimize,
299-
.use_double_precision = true,
300-
}).artifact("zphysics-tests")).step);
301-
302-
const zpool = b.dependency("zpool", .{
303-
.target = target,
304-
.optimize = optimize,
305-
});
306-
test_step.dependOn(&b.addRunArtifact(zpool.artifact("zpool-tests")).step);
307-
308-
const zjobs = b.dependency("zjobs", .{
309-
.target = target,
310-
.optimize = optimize,
311-
});
312-
test_step.dependOn(&b.addRunArtifact(zjobs.artifact("zjobs-tests")).step);
313-
314-
const zstbi = b.dependency("zstbi", .{
315-
.target = target,
316-
.optimize = optimize,
317-
});
318-
test_step.dependOn(&b.addRunArtifact(zstbi.artifact("zstbi-tests")).step);
319-
320-
const ztracy = b.dependency("ztracy", .{
321-
.target = target,
322-
.optimize = optimize,
323-
});
324-
test_step.dependOn(&b.addRunArtifact(ztracy.artifact("ztracy-tests")).step);
325-
}
326-
327231
// TODO: Delete this once Zig checks minimum_zig_version in build.zig.zon
328232
fn ensureZigVersion() !void {
329233
var installed_ver = builtin.zig_version;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy