update test to include a build of tools/build, fix aws dependency
All checks were successful
Lambda-Zig Build / build (push) Successful in 2m32s
All checks were successful
Lambda-Zig Build / build (push) Successful in 2m32s
This commit is contained in:
parent
dbea9b6205
commit
446b726cf9
2 changed files with 11 additions and 2 deletions
|
|
@ -56,11 +56,20 @@ pub fn build(b: *std.Build) !void {
|
||||||
|
|
||||||
const run_main_tests = b.addRunArtifact(main_tests);
|
const run_main_tests = b.addRunArtifact(main_tests);
|
||||||
|
|
||||||
|
// Build the lambda-build CLI to ensure it compiles
|
||||||
|
// This catches dependency version mismatches between tools/build and the main project
|
||||||
|
const lambda_build_dep = b.dependency("lambda_build", .{
|
||||||
|
.target = b.graph.host,
|
||||||
|
.optimize = optimize,
|
||||||
|
});
|
||||||
|
const lambda_build_exe = lambda_build_dep.artifact("lambda-build");
|
||||||
|
|
||||||
// This creates a build step. It will be visible in the `zig build --help` menu,
|
// This creates a build step. It will be visible in the `zig build --help` menu,
|
||||||
// and can be selected like this: `zig build test`
|
// and can be selected like this: `zig build test`
|
||||||
// This will evaluate the `test` step rather than the default, which is "install".
|
// This will evaluate the `test` step rather than the default, which is "install".
|
||||||
const test_step = b.step("test", "Run library tests");
|
const test_step = b.step("test", "Run library tests");
|
||||||
test_step.dependOn(&run_main_tests.step);
|
test_step.dependOn(&run_main_tests.step);
|
||||||
|
test_step.dependOn(&lambda_build_exe.step);
|
||||||
|
|
||||||
// Create executable module
|
// Create executable module
|
||||||
const exe_module = b.createModule(.{
|
const exe_module = b.createModule(.{
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@
|
||||||
.fingerprint = 0x6e61de08e7e51114,
|
.fingerprint = 0x6e61de08e7e51114,
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.aws = .{
|
.aws = .{
|
||||||
.url = "git+https://git.lerch.org/lobo/aws-sdk-for-zig.git#6e34e83933aaa1120b7d0049f458608fdd6fa27b",
|
.url = "git+https://git.lerch.org/lobo/aws-sdk-for-zig#686b18d1f4329e80cf6d9b916eaa0c231333edb9",
|
||||||
.hash = "aws-0.0.1-SbsFcCs2CgChIYNjD8lAnGZTOk0_96-db5kDawRnzImA",
|
.hash = "aws-0.0.1-SbsFcAc3CgCdWfayHWFazNfJBxkzLyU2wOJSj7h4W17-",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
.paths = .{
|
.paths = .{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue