diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b7a93b83f..a70452fc7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,6 +40,26 @@ jobs: - name: Test Build run: nix develop -c zig build -Dstatic=true -Dapp-runtime=glfw -Dtarget=${{ matrix.target }} + build-bench: + # We build benchmarks on large because it uses ReleaseFast + runs-on: namespace-profile-ghostty-lg + needs: test + steps: + - name: Checkout code + uses: actions/checkout@v4 + + # Install Nix and use that to run our tests so our environment matches exactly. + - uses: cachix/install-nix-action@v24 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v14 + with: + name: ghostty + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + + - name: Build Benchmarks + run: nix develop -c zig build -Dapp-runtime=glfw -Demit-bench + build-linux-libghostty: runs-on: namespace-profile-ghostty-md needs: test diff --git a/src/bench/codepoint-width.zig b/src/bench/codepoint-width.zig index c6b11c72d..ce44bccb0 100644 --- a/src/bench/codepoint-width.zig +++ b/src/bench/codepoint-width.zig @@ -56,8 +56,8 @@ const Mode = enum { table, }; -pub const std_options = struct { - pub const log_level: std.log.Level = .debug; +pub const std_options: std.Options = .{ + .log_level = .debug, }; pub fn main() !void { diff --git a/src/bench/grapheme-break.zig b/src/bench/grapheme-break.zig index 7decd525d..bbe2171d5 100644 --- a/src/bench/grapheme-break.zig +++ b/src/bench/grapheme-break.zig @@ -48,8 +48,8 @@ const Mode = enum { table, }; -pub const std_options = struct { - pub const log_level: std.log.Level = .debug; +pub const std_options: std.Options = .{ + .log_level = .debug, }; pub fn main() !void { diff --git a/src/bench/stream.zig b/src/bench/stream.zig index 61a0b4318..5312a3d0e 100644 --- a/src/bench/stream.zig +++ b/src/bench/stream.zig @@ -70,8 +70,8 @@ const Mode = enum { @"gen-rand", }; -pub const std_options = struct { - pub const log_level: std.log.Level = .debug; +pub const std_options: std.Options = .{ + .log_level = .debug, }; pub fn main() !void {