mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-09 11:26:41 +00:00
Merge pull request #1498 from qwerasd205/fix-bench-options
fix(bench): update std options format
This commit is contained in:
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@@ -40,6 +40,26 @@ jobs:
|
|||||||
- name: Test Build
|
- name: Test Build
|
||||||
run: nix develop -c zig build -Dstatic=true -Dapp-runtime=glfw -Dtarget=${{ matrix.target }}
|
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:
|
build-linux-libghostty:
|
||||||
runs-on: namespace-profile-ghostty-md
|
runs-on: namespace-profile-ghostty-md
|
||||||
needs: test
|
needs: test
|
||||||
|
@@ -56,8 +56,8 @@ const Mode = enum {
|
|||||||
table,
|
table,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const std_options = struct {
|
pub const std_options: std.Options = .{
|
||||||
pub const log_level: std.log.Level = .debug;
|
.log_level = .debug,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
|
@@ -48,8 +48,8 @@ const Mode = enum {
|
|||||||
table,
|
table,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const std_options = struct {
|
pub const std_options: std.Options = .{
|
||||||
pub const log_level: std.log.Level = .debug;
|
.log_level = .debug,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
|
@@ -70,8 +70,8 @@ const Mode = enum {
|
|||||||
@"gen-rand",
|
@"gen-rand",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const std_options = struct {
|
pub const std_options: std.Options = .{
|
||||||
pub const log_level: std.log.Level = .debug;
|
.log_level = .debug,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
|
Reference in New Issue
Block a user