Switch to stage2 primarily for builds
parent
5b6eb2736a
commit
ddfb1dec4b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue