get build LLVM-approved (riscv64-linux disabled for now)
This commit is contained in:
parent
723e0b0989
commit
e74a0e9456
|
@ -32,7 +32,7 @@ jobs:
|
||||||
tar x -C /usr/local -f zig-linux-${ARCH}-${ZIG_VERSION}.tar.xz
|
tar x -C /usr/local -f zig-linux-${ARCH}-${ZIG_VERSION}.tar.xz
|
||||||
ln -s /usr/local/zig-linux-${ARCH}-${ZIG_VERSION}/zig /usr/local/bin/zig
|
ln -s /usr/local/zig-linux-${ARCH}-${ZIG_VERSION}/zig /usr/local/bin/zig
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: zig build -j1 test --verbose
|
run: zig build test --verbose
|
||||||
- name: Build example
|
- name: Build example
|
||||||
run: ( cd example && zig build ) # Make sure example builds
|
run: ( cd example && zig build ) # Make sure example builds
|
||||||
# Zig package manager expects everything to be inside a directory in the archive,
|
# Zig package manager expects everything to be inside a directory in the archive,
|
||||||
|
|
|
@ -35,7 +35,7 @@ jobs:
|
||||||
ln -s /usr/local/"${file%%.tar.xz}"/zig /usr/local/bin/zig
|
ln -s /usr/local/"${file%%.tar.xz}"/zig /usr/local/bin/zig
|
||||||
zig version
|
zig version
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: zig build -j1 test --verbose
|
run: zig build test --verbose
|
||||||
- name: Build example
|
- name: Build example
|
||||||
run: ( cd example && zig build ) # Make sure example builds
|
run: ( cd example && zig build ) # Make sure example builds
|
||||||
# Zig package manager expects everything to be inside a directory in the archive,
|
# Zig package manager expects everything to be inside a directory in the archive,
|
||||||
|
|
|
@ -33,7 +33,7 @@ jobs:
|
||||||
ln -s /usr/local/"${file%%.tar.xz}"/zig /usr/local/bin/zig
|
ln -s /usr/local/"${file%%.tar.xz}"/zig /usr/local/bin/zig
|
||||||
zig version
|
zig version
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: zig build -j1 test --verbose
|
run: zig build test --verbose
|
||||||
- name: Build example
|
- name: Build example
|
||||||
run: ( cd example && zig build ) # Make sure example builds
|
run: ( cd example && zig build ) # Make sure example builds
|
||||||
# Zig package manager expects everything to be inside a directory in the archive,
|
# Zig package manager expects everything to be inside a directory in the archive,
|
||||||
|
|
|
@ -17,15 +17,19 @@ Current executable size for the demo is 980k after compiling with -Doptimize=Rel
|
||||||
in x86_linux, and will vary based on services used. Tested targets:
|
in x86_linux, and will vary based on services used. Tested targets:
|
||||||
|
|
||||||
* x86_64-linux
|
* x86_64-linux
|
||||||
* riscv64-linux
|
* riscv64-linux\*
|
||||||
* aarch64-linux
|
* aarch64-linux
|
||||||
* x86_64-windows
|
* x86_64-windows\*\*
|
||||||
* arm-linux
|
* arm-linux
|
||||||
* aarch64-macos
|
* aarch64-macos
|
||||||
* x86_64-macos
|
* x86_64-macos
|
||||||
|
|
||||||
Tested targets are built, but not continuously tested, by CI.
|
Tested targets are built, but not continuously tested, by CI.
|
||||||
|
|
||||||
|
\* On Zig 0.12, riscv64-linux tests get stuck forever in "LLVM Emit object"
|
||||||
|
\*\* On Zig 0.12, x86_64-windows tests have one test skipped as LLVM consumes all available RAM on the system
|
||||||
|
|
||||||
|
|
||||||
Zig-Develop Branch
|
Zig-Develop Branch
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|
10
build.zig
10
build.zig
|
@ -14,10 +14,12 @@ const test_targets = [_]std.zig.CrossTarget{
|
||||||
.cpu_arch = .aarch64,
|
.cpu_arch = .aarch64,
|
||||||
.os_tag = .linux,
|
.os_tag = .linux,
|
||||||
},
|
},
|
||||||
.{
|
// // The test executable just spins forever in LLVM using nominated zig 0.12 March 2024
|
||||||
.cpu_arch = .riscv64,
|
// // This is likely a LLVM problem unlikely to be fixed in zig 0.12
|
||||||
.os_tag = .linux,
|
// .{
|
||||||
},
|
// .cpu_arch = .riscv64,
|
||||||
|
// .os_tag = .linux,
|
||||||
|
// },
|
||||||
.{
|
.{
|
||||||
.cpu_arch = .arm,
|
.cpu_arch = .arm,
|
||||||
.os_tag = .linux,
|
.os_tag = .linux,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
const builtin = @import("builtin");
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
const awshttp = @import("aws_http.zig");
|
const awshttp = @import("aws_http.zig");
|
||||||
|
@ -1898,7 +1899,13 @@ test "ec2_query_no_input: EC2 describe regions" {
|
||||||
try std.testing.expectEqualStrings("4cdbdd69-800c-49b5-8474-ae4c17709782", call.response_metadata.request_id);
|
try std.testing.expectEqualStrings("4cdbdd69-800c-49b5-8474-ae4c17709782", call.response_metadata.request_id);
|
||||||
try std.testing.expectEqual(@as(usize, 17), call.response.regions.?.len);
|
try std.testing.expectEqual(@as(usize, 17), call.response.regions.?.len);
|
||||||
}
|
}
|
||||||
|
// LLVM hates this test. Depending on the platform, it will consume all memory
|
||||||
|
// on the compilation host. Windows x86_64 and Linux riscv64 seem to be a problem so far
|
||||||
|
// riscv64-linux also seems to have another problem with LLVM basically infinitely
|
||||||
|
// doing something. My guess is the @embedFile is freaking out LLVM
|
||||||
test "ec2_query_with_input: EC2 describe instances" {
|
test "ec2_query_with_input: EC2 describe instances" {
|
||||||
|
if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest;
|
||||||
|
if (builtin.cpu.arch == .riscv64 and builtin.os.tag == .linux) return error.SkipZigTest;
|
||||||
const allocator = std.testing.allocator;
|
const allocator = std.testing.allocator;
|
||||||
var test_harness = TestSetup.init(.{
|
var test_harness = TestSetup.init(.{
|
||||||
.allocator = allocator,
|
.allocator = allocator,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user