initial WASI support
Some checks failed
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m36s
Some checks failed
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m36s
This commit is contained in:
parent
ce44fd567f
commit
668debd29d
|
@ -23,6 +23,7 @@ jobs:
|
||||||
- run: ln -s /usr/local/zig-linux-${ARCH}-${ZIG_VERSION}/zig /usr/local/bin/zig
|
- run: ln -s /usr/local/zig-linux-${ARCH}-${ZIG_VERSION}/zig /usr/local/bin/zig
|
||||||
- run: zig build test
|
- run: zig build test
|
||||||
- run: zig build test -Dtarget=arm-linux # we want to know we can build for 32 bit
|
- run: zig build test -Dtarget=arm-linux # we want to know we can build for 32 bit
|
||||||
|
- run: zig build test -Dtarget=wasm32-wasi # downstream needs this for CF workers
|
||||||
- name: Notify
|
- name: Notify
|
||||||
uses: https://git.lerch.org/lobo/action-notify-ntfy@v2
|
uses: https://git.lerch.org/lobo/action-notify-ntfy@v2
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
@ -103,7 +103,7 @@ pub fn configureBuild(b: *std.build.Builder, exe: *std.Build.Step.Compile) !void
|
||||||
const iam_role_file = b.getInstallPath(.bin, "iam_role");
|
const iam_role_file = b.getInstallPath(.bin, "iam_role");
|
||||||
|
|
||||||
if (!fileExists(iam_role_file)) {
|
if (!fileExists(iam_role_file)) {
|
||||||
std.debug.print("file does not exist", .{});
|
// std.debug.print("file does not exist", .{});
|
||||||
// Our cache file does not exist on disk, so we'll create/get the role
|
// Our cache file does not exist on disk, so we'll create/get the role
|
||||||
// arn using the AWS CLI and dump to disk here
|
// arn using the AWS CLI and dump to disk here
|
||||||
const ifstatement_fmt =
|
const ifstatement_fmt =
|
||||||
|
|
|
@ -5,9 +5,14 @@ pub const HandlerFn = *const fn (std.mem.Allocator, []const u8, Context) anyerro
|
||||||
|
|
||||||
const log = std.log.scoped(.universal_lambda);
|
const log = std.log.scoped(.universal_lambda);
|
||||||
|
|
||||||
// TODO: Should this be union?
|
const FakeResponse = struct {
|
||||||
|
request: struct {
|
||||||
|
target: []const u8,
|
||||||
|
headers: std.http.Headers,
|
||||||
|
},
|
||||||
|
};
|
||||||
pub const Context = union(enum) {
|
pub const Context = union(enum) {
|
||||||
web_request: *std.http.Server.Response,
|
web_request: if (build_options.build_type == .exe_run) *FakeResponse else *std.http.Server.Response,
|
||||||
flexilib: struct {
|
flexilib: struct {
|
||||||
request: flexilib.ZigRequest,
|
request: flexilib.ZigRequest,
|
||||||
response: flexilib.ZigResponse,
|
response: flexilib.ZigResponse,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user