upgrade to zig 0.13.0
All checks were successful
Generic zig build / build (push) Successful in 1m11s
All checks were successful
Generic zig build / build (push) Successful in 1m11s
This commit is contained in:
parent
f3d80b4afe
commit
f5612a2c5b
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: elerch/setup-zig@v3
|
- uses: elerch/setup-zig@v3
|
||||||
with:
|
with:
|
||||||
version: 0.12.0
|
version: 0.13.0
|
||||||
- uses: elerch/zig-action-cache@v1.1.6
|
- uses: elerch/zig-action-cache@v1.1.6
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: zig build --summary all
|
run: zig build --summary all
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
core
|
core
|
||||||
zig-cache
|
zig-cache
|
||||||
zig-out
|
zig-out
|
||||||
|
.zig-cache
|
||||||
|
.zig-cache
|
||||||
|
|
|
@ -52,7 +52,7 @@ pub fn build(b: *std.Build) !void {
|
||||||
.name = "universal-lambda-zig",
|
.name = "universal-lambda-zig",
|
||||||
// In this case the main source file is merely a path, however, in more
|
// In this case the main source file is merely a path, however, in more
|
||||||
// complicated build scripts, this could be a generated file.
|
// complicated build scripts, this could be a generated file.
|
||||||
.root_source_file = .{ .path = "src/universal_lambda_build.zig" },
|
.root_source_file = b.path("src/universal_lambda_build.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
|
@ -108,7 +108,7 @@ pub fn build(b: *std.Build) !void {
|
||||||
// but does not run it.
|
// but does not run it.
|
||||||
const exe_tests = b.addTest(.{
|
const exe_tests = b.addTest(.{
|
||||||
.name = "test: as executable",
|
.name = "test: as executable",
|
||||||
.root_source_file = .{ .path = "src/test.zig" },
|
.root_source_file = b.path("src/test.zig"),
|
||||||
.target = b.resolveTargetQuery(t),
|
.target = b.resolveTargetQuery(t),
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
|
@ -128,7 +128,7 @@ pub fn build(b: *std.Build) !void {
|
||||||
// via shared library
|
// via shared library
|
||||||
const lib_tests = b.addTest(.{
|
const lib_tests = b.addTest(.{
|
||||||
.name = "test: as library",
|
.name = "test: as library",
|
||||||
.root_source_file = .{ .path = "src/flexilib.zig" },
|
.root_source_file = b.path("src/flexilib.zig"),
|
||||||
.target = b.resolveTargetQuery(t),
|
.target = b.resolveTargetQuery(t),
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,16 +4,16 @@
|
||||||
|
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.flexilib = .{
|
.flexilib = .{
|
||||||
.url = "https://git.lerch.org/lobo/FlexiLib/archive/48c0e893da20c9821f6fe55516861e08b9cb6c77.tar.gz",
|
.url = "https://git.lerch.org/lobo/FlexiLib/archive/4b649eb445a7a51dfcc93cb266de54018b5fd8b7.tar.gz",
|
||||||
.hash = "1220a4db25529543a82d199a17495aedd7766fef4f5d0122893566663721167b6168",
|
.hash = "12204081616edd3bdf7ab87a5e6b9846cd1bbfda58bd6506b3315e12e58246ef3ffa",
|
||||||
},
|
},
|
||||||
.@"lambda-zig" = .{
|
.@"lambda-zig" = .{
|
||||||
.url = "https://git.lerch.org/lobo/lambda-zig/archive/9d1108697282d24509472d7019c97d1afe06ba1c.tar.gz",
|
.url = "https://git.lerch.org/lobo/lambda-zig/archive/ef5b793882c60ff3d9f3e088fc47758e8ec5a2bc.tar.gz",
|
||||||
.hash = "12205b8a2be03b63a1b07bde373e8293c96be53a68a58054abe8689f80d691633862",
|
.hash = "122053d827cde4634ab521ee87cc1195abbbdbd9b5ccc66e557764a151f88c138d02",
|
||||||
},
|
},
|
||||||
.@"cloudflare-worker-deploy" = .{
|
.@"cloudflare-worker-deploy" = .{
|
||||||
.url = "https://git.lerch.org/lobo/cloudflare-worker-deploy/archive/7ce8fd1007e3ced1e629aa341cc36ae29919e5d9.tar.gz",
|
.url = "https://git.lerch.org/lobo/cloudflare-worker-deploy/archive/e26fc95f74bf1d64e97a19e65a08339870299f0e.tar.gz",
|
||||||
.hash = "1220e3cdd8e007af59309b264f695ac8d138bb28721cb4b23319b442ffde8536f71f",
|
.hash = "122002d9b873cb5416e11170638a9baf5411e3ad3e08631273528d076948040a384d",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,8 @@ pub const Response = struct {
|
||||||
}
|
}
|
||||||
pub fn deinit(res: *Response) void {
|
pub fn deinit(res: *Response) void {
|
||||||
res.body.deinit();
|
res.body.deinit();
|
||||||
if (res.headers_owned) res.allocator.free(res.headers);
|
// TODO: I don't think we should really own these headers at all, ever
|
||||||
|
// if (res.headers_owned) res.allocator.free(res.headers);
|
||||||
if (res.request.headers_owned) res.allocator.free(res.request.headers);
|
if (res.request.headers_owned) res.allocator.free(res.request.headers);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,7 +35,7 @@ pub fn runStandaloneServerParent(allocator: ?std.mem.Allocator, event_handler: i
|
||||||
const stdout = std.io.getStdOut();
|
const stdout = std.io.getStdOut();
|
||||||
const stderr = std.io.getStdErr();
|
const stderr = std.io.getStdErr();
|
||||||
while (true) {
|
while (true) {
|
||||||
var cp = std.ChildProcess.init(al.items, alloc);
|
var cp = std.process.Child.init(al.items, alloc);
|
||||||
cp.stdin = stdin;
|
cp.stdin = stdin;
|
||||||
cp.stdout = stdout;
|
cp.stdout = stdout;
|
||||||
cp.stderr = stderr;
|
cp.stderr = stderr;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user