summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2024-04-14 20:23:17 +0200
committerGravatar Vincent Rischmann2024-04-14 20:23:17 +0200
commite9ad0f005c7da2b2aa2f012e84733bf9aea2340b (patch)
tree506c3d1efc868315ee082092baa9bf41c1f1906e
parentbuild: stop building with the system library in CI (diff)
downloadzig-sqlite-e9ad0f005c7da2b2aa2f012e84733bf9aea2340b.tar.gz
zig-sqlite-e9ad0f005c7da2b2aa2f012e84733bf9aea2340b.tar.xz
zig-sqlite-e9ad0f005c7da2b2aa2f012e84733bf9aea2340b.zip
build: revamp the CI targets
-rw-r--r--build.zig63
1 files changed, 9 insertions, 54 deletions
diff --git a/build.zig b/build.zig
index de81563..af6ece1 100644
--- a/build.zig
+++ b/build.zig
@@ -35,66 +35,21 @@ const TestTarget = struct {
35const ci_targets = switch (builtin.target.cpu.arch) { 35const ci_targets = switch (builtin.target.cpu.arch) {
36 .x86_64 => switch (builtin.target.os.tag) { 36 .x86_64 => switch (builtin.target.os.tag) {
37 .linux => [_]TestTarget{ 37 .linux => [_]TestTarget{
38 // Targets linux but other CPU archs. 38 TestTarget{ .query = .{ .cpu_arch = .x86_64, .abi = .musl }, .bundled = true },
39 TestTarget{ 39 TestTarget{ .query = .{ .cpu_arch = .x86, .abi = .musl }, .bundled = true },
40 .query = .{ 40 TestTarget{ .query = .{ .cpu_arch = .aarch64, .abi = .musl }, .bundled = true },
41 .cpu_arch = .x86_64,
42 .abi = .musl,
43 },
44 .bundled = true,
45 },
46 TestTarget{
47 .query = .{
48 .cpu_arch = .x86,
49 .abi = .musl,
50 },
51 .bundled = true,
52 },
53 }, 41 },
54 .windows => [_]TestTarget{ 42 .windows => [_]TestTarget{
55 TestTarget{ 43 TestTarget{ .query = .{ .cpu_arch = .x86_64, .abi = .gnu }, .bundled = true },
56 .query = .{ 44 TestTarget{ .query = .{ .cpu_arch = .x86, .abi = .gnu }, .bundled = true },
57 .cpu_arch = .x86_64,
58 .abi = .gnu,
59 },
60 .bundled = true,
61 },
62 TestTarget{
63 .query = .{
64 .cpu_arch = .x86,
65 .abi = .gnu,
66 },
67 .bundled = true,
68 },
69 }, 45 },
70 .macos => [_]TestTarget{ 46 .macos => [_]TestTarget{
71 TestTarget{ 47 TestTarget{ .query = .{ .cpu_arch = .x86_64 }, .bundled = true },
72 .query = .{ 48 TestTarget{ .query = .{ .cpu_arch = .aarch64 }, .bundled = true },
73 .cpu_arch = .x86_64,
74 },
75 .bundled = true,
76 },
77 // TODO(vincent): this fails for some reason
78 // TestTarget{
79 // .query =.{
80 // .cpu_arch = .aarch64,
81 // },
82 // .bundled = true,
83 // },
84 },
85 else => [_]TestTarget{
86 TestTarget{
87 .query = .{},
88 .bundled = false,
89 },
90 },
91 },
92 else => [_]TestTarget{
93 TestTarget{
94 .query = .{},
95 .bundled = false,
96 }, 49 },
50 else => unreachable,
97 }, 51 },
52 else => unreachable,
98}; 53};
99 54
100const all_test_targets = switch (builtin.target.cpu.arch) { 55const all_test_targets = switch (builtin.target.cpu.arch) {