From c77502d90f268025d1f60a0fcc9ed2c15bacc10d Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Fri, 10 May 2024 13:56:48 -0700 Subject: [PATCH] disable awslambda for WASI tests --- .github/workflows/build.yaml | 1 + src/universal_lambda.zig | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a059a96..178e6b0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,6 +9,7 @@ env: ACTIONS_RUNTIME_TOKEN: ${{ secrets.GITHUB_TOKEN }} ACTIONS_RUNTIME_URL: ${{ env.GITHUB_SERVER_URL }}/api/actions_pipeline/ WASMTIME_BACKTRACE_DETAILS: 1 + WASMTIME_NEW_CLI: 0 jobs: build: runs-on: ubuntu-latest diff --git a/src/universal_lambda.zig b/src/universal_lambda.zig index 38547d7..254b99a 100644 --- a/src/universal_lambda.zig +++ b/src/universal_lambda.zig @@ -30,7 +30,8 @@ test { std.testing.refAllDecls(@This()); std.testing.refAllDecls(@import("console.zig")); std.testing.refAllDecls(@import("standalone_server.zig")); - std.testing.refAllDecls(@import("awslambda.zig")); + if (@import("builtin").os.tag != .wasi) + std.testing.refAllDecls(@import("awslambda.zig")); // By importing flexilib.zig, this breaks downstream any time someone // tries to build flexilib, because flexilib.zig becomes the root module, // then gets imported here again. It shouldn't be done unless doing