mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-01 09:31:25 +00:00
nix: keep symbols if we're building a debug package
also add CI tests to make sure debug symbols exist Co-authored-by: Mitchell Hashimoto <m@mitchellh.com>
This commit is contained in:
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
@@ -211,8 +211,23 @@ jobs:
|
||||
name: ghostty
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
|
||||
- name: Test NixOS package build
|
||||
run: nix build .#ghostty
|
||||
- name: Test release NixOS package build
|
||||
run: nix build .#ghostty-releasefast
|
||||
|
||||
- name: Check version
|
||||
run: result/bin/ghostty +version | grep -q 'builtin.OptimizeMode.ReleaseFast'
|
||||
|
||||
- name: Check to see if the binary has been stripped
|
||||
run: nm result/bin/.ghostty-wrapped 2>&1 | grep -q 'no symbols'
|
||||
|
||||
- name: Test debug NixOS package build
|
||||
run: nix build .#ghostty-debug
|
||||
|
||||
- name: Check version
|
||||
run: result/bin/ghostty +version | grep -q 'builtin.OptimizeMode.Debug'
|
||||
|
||||
- name: Check to see if the binary has not been stripped
|
||||
run: nm result/bin/.ghostty-wrapped 2>&1 | grep -q 'main_ghostty.main'
|
||||
|
||||
build-dist:
|
||||
runs-on: namespace-profile-ghostty-md
|
||||
|
||||
Reference in New Issue
Block a user