Compare commits

...

2 Commits

Author SHA1 Message Date
3097adb6e0
upgrade to zig 0.11 release
All checks were successful
Build / build (push) Successful in 1m41s
Build / sign (push) Successful in 38s
Build / deploy (push) Successful in 1m7s
2023-08-04 09:19:40 -07:00
9524ca1566
more information in log 2023-08-04 09:16:29 -07:00
3 changed files with 3 additions and 5 deletions

View File

@ -4,7 +4,7 @@ on: [push]
env:
ACTIONS_RUNTIME_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACTIONS_RUNTIME_URL: https://git.lerch.org/api/actions_pipeline/
ZIG_URL: https://mirror.bazel.build/ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3886+0c1bfe271.tar.xz
ZIG_URL: https://ziglang.org/download/0.11.0/zig-linux-x86_64-0.11.0.tar.xz
BUILD_TARGET: x86_64-linux-gnu # Needs to be gnu since we're using dlopen
BUILD_OPTIMIZATION: ReleaseSafe # Safety is usually a good thing
jobs:

View File

@ -79,9 +79,7 @@ This library assumes the use of Linux as a host. While the primary engine is not
tied to Linux, the file watcher module uses inotify and friends and will not
work outside that OS. PRs are welcome.
The system is built with a pre-release version of zig, currently zig version
[0.11.0-dev.3886+0c1bfe271](https://github.com/marler8997/zig-unofficial-releases#0110-dev38860c1bfe271-summary).
This version has web server in the standard library, so it is useful.
The system is zig version [0.11](https://ziglang.org/download/0.11.0/zig-linux-x86_64-0.11.0.tar.xz).
To achieve the lowest latency possible, this server loads dynamic libraries
using [dlopen(3)](https://linux.die.net/man/3/dlopen) based on a configuration

View File

@ -436,7 +436,7 @@ fn threadMain(allocator: std.mem.Allocator, server: *std.http.Server, thread_num
}
fn loadConfig(allocator: std.mem.Allocator) ![]Executor {
log.info("loading config", .{});
log.info("loading config from 'proxy.ini'", .{});
// We will not watch this file - let it reload on SIGHUP
var config_file = try std.fs.cwd().openFile("proxy.ini", .{});
defer config_file.close();