mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
remove sentry test for macOS, remove windows check
This commit is contained in:
27
.github/workflows/test.yml
vendored
27
.github/workflows/test.yml
vendored
@ -381,7 +381,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sentry: ["true", "false"]
|
sentry: ["true", "false"]
|
||||||
name: Build -Dsentry=${{ matrix.sentry }} on Linux
|
name: Build -Dsentry=${{ matrix.sentry }}
|
||||||
runs-on: namespace-profile-ghostty-sm
|
runs-on: namespace-profile-ghostty-sm
|
||||||
needs: test
|
needs: test
|
||||||
env:
|
env:
|
||||||
@ -411,31 +411,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
nix develop -c zig build -Dsentry=${{ matrix.sentry }}
|
nix develop -c zig build -Dsentry=${{ matrix.sentry }}
|
||||||
|
|
||||||
test-sentry-macos:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sentry: ["true", "false"]
|
|
||||||
name: Build -Dsentry=${{ matrix.sentry }} on macOS
|
|
||||||
runs-on: namespace-profile-ghostty-macos
|
|
||||||
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@v30
|
|
||||||
with:
|
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
- uses: cachix/cachix-action@v15
|
|
||||||
with:
|
|
||||||
name: ghostty
|
|
||||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
||||||
|
|
||||||
- name: Test Sentry Build
|
|
||||||
run: |
|
|
||||||
nix develop -c zig build -Dsentry=${{ matrix.sentry }}
|
|
||||||
|
|
||||||
test-macos:
|
test-macos:
|
||||||
runs-on: namespace-profile-ghostty-macos
|
runs-on: namespace-profile-ghostty-macos
|
||||||
needs: test
|
needs: test
|
||||||
|
@ -159,6 +159,9 @@ pub fn build(b: *std.Build) !void {
|
|||||||
) orelse sentry: {
|
) orelse sentry: {
|
||||||
switch (target.result.os.tag) {
|
switch (target.result.os.tag) {
|
||||||
.macos, .ios => break :sentry true,
|
.macos, .ios => break :sentry true,
|
||||||
|
|
||||||
|
// Note its false for linux because the crash reports on Linux
|
||||||
|
// don't have much useful information.
|
||||||
else => break :sentry false,
|
else => break :sentry false,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -1256,9 +1259,7 @@ fn addDeps(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sentry
|
// Sentry
|
||||||
if (config.sentry) sentry: {
|
if (config.sentry) {
|
||||||
if (target.result.os.tag == .windows) break :sentry;
|
|
||||||
|
|
||||||
const sentry_dep = b.dependency("sentry", .{
|
const sentry_dep = b.dependency("sentry", .{
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
|
Reference in New Issue
Block a user