mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
Merge pull request #105 from Browsercore/zig-upgrade
Zig upgrade to 0.12.0-dev.1773+8a8fd47d2
This commit is contained in:
2
.github/workflows/wpt.yml
vendored
2
.github/workflows/wpt.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/browsercore/zig-browsercore:0.11.0
|
||||
image: ghcr.io/browsercore/zig-browsercore:0.12.0-dev.1773-8a8fd47d2
|
||||
credentials:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
2
.github/workflows/zig-fmt.yml
vendored
2
.github/workflows/zig-fmt.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/browsercore/zig:0.11.0
|
||||
image: ghcr.io/browsercore/zig:0.12.0-dev.1773-8a8fd47d2
|
||||
credentials:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
2
.github/workflows/zig-test.yml
vendored
2
.github/workflows/zig-test.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/browsercore/zig-browsercore:0.11.0
|
||||
image: ghcr.io/browsercore/zig-browsercore:0.12.0-dev.1773-8a8fd47d2
|
||||
credentials:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -155,6 +155,9 @@ fn linkNetSurf(step: *std.build.LibExeObjStep) void {
|
||||
// wrapper
|
||||
const flags = [_][]const u8{};
|
||||
const files: [1][]const u8 = .{ns ++ "wrapper/wrapper.c"};
|
||||
step.addCSourceFiles(&files, &flags);
|
||||
step.addCSourceFiles(.{
|
||||
.files = &files,
|
||||
.flags = &flags,
|
||||
});
|
||||
step.addIncludePath(.{ .path = ns ++ "wrapper" });
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ pub const DOMException = struct {
|
||||
|
||||
// TODO: deinit
|
||||
pub fn init(alloc: std.mem.Allocator, err: anyerror, callerName: []const u8) anyerror!DOMException {
|
||||
const errCast = @as(parser.DOMError, @errSetCast(err));
|
||||
const errCast = @as(parser.DOMError, @errorCast(err));
|
||||
const errName = DOMException.name(errCast);
|
||||
const str = switch (errCast) {
|
||||
error.HierarchyRequest => try allocPrint(
|
||||
|
||||
@@ -77,7 +77,7 @@ pub fn main() !void {
|
||||
};
|
||||
|
||||
// server
|
||||
var addr = try std.net.Address.initUnix(socket_path);
|
||||
const addr = try std.net.Address.initUnix(socket_path);
|
||||
server = std.net.StreamServer.init(.{});
|
||||
defer server.deinit();
|
||||
try server.listen(addr);
|
||||
|
||||
@@ -139,7 +139,7 @@ fn evalJS(env: jsruntime.Env, alloc: std.mem.Allocator, script: []const u8, name
|
||||
|
||||
// browse the path to find the tests list.
|
||||
pub fn find(allocator: std.mem.Allocator, comptime path: []const u8, list: *std.ArrayList([]const u8)) !void {
|
||||
var dir = try std.fs.cwd().openIterableDir(path, .{ .no_follow = true });
|
||||
var dir = try std.fs.cwd().openDir(path, .{ .iterate = true, .no_follow = true });
|
||||
defer dir.close();
|
||||
|
||||
var walker = try dir.walk(allocator);
|
||||
|
||||
2
vendor/jsruntime-lib
vendored
2
vendor/jsruntime-lib
vendored
Submodule vendor/jsruntime-lib updated: 254739a972...d80e4f3eaf
Reference in New Issue
Block a user