Merge pull request #1498 from qwerasd205/fix-bench-options

fix(bench): update std options format
This commit is contained in:
Mitchell Hashimoto
2024-02-10 19:46:56 -08:00
committed by GitHub
4 changed files with 26 additions and 6 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {