mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-27 03:48:37 +03:00
Switch to stage2 primarily for builds
This commit is contained in:
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -38,9 +38,6 @@ jobs:
|
||||
# Cross-compile the binary. We always use static building for this
|
||||
# because its the only way to access the headers.
|
||||
- name: Test Build
|
||||
run: nix develop -c zig build -fstage1 -Dstatic=true -Dtarget=${{ matrix.target }}
|
||||
|
||||
- name: Test Build stage2
|
||||
run: nix develop -c zig build -Dstatic=true -Dtarget=${{ matrix.target }}
|
||||
|
||||
test:
|
||||
@ -67,5 +64,5 @@ jobs:
|
||||
run: nix develop -c zig build test
|
||||
|
||||
- name: Test Dynamic Build
|
||||
run: nix develop -c zig build -fstage1 -Dstatic=false
|
||||
run: nix develop -c zig build -Dstatic=false
|
||||
|
||||
|
2
Makefile
2
Makefile
@ -5,7 +5,7 @@ init:
|
||||
|
||||
# Slightly cursed way that we setup a dev version of this locally on NixOS.
|
||||
dev/install:
|
||||
zig build -fstage1 -Dcpu=baseline -Drelease-fast
|
||||
zig build -Dcpu=baseline -Drelease-fast
|
||||
if [ -f "/etc/NIXOS" ]; then patchelf --set-rpath "${LD_LIBRARY_PATH}" zig-out/bin/ghostty; fi
|
||||
mkdir -p ${HOME}/bin
|
||||
cp zig-out/bin/ghostty ${HOME}/bin/devtty
|
||||
|
Reference in New Issue
Block a user