Switch to stage2 primarily for builds

This commit is contained in:
Mitchell Hashimoto
2022-10-15 15:00:41 -07:00
parent 5b6eb2736a
commit ddfb1dec4b
2 changed files with 2 additions and 5 deletions

View File

@ -38,9 +38,6 @@ jobs:
# Cross-compile the binary. We always use static building for this # Cross-compile the binary. We always use static building for this
# because its the only way to access the headers. # because its the only way to access the headers.
- name: Test Build - 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 }} run: nix develop -c zig build -Dstatic=true -Dtarget=${{ matrix.target }}
test: test:
@ -67,5 +64,5 @@ jobs:
run: nix develop -c zig build test run: nix develop -c zig build test
- name: Test Dynamic Build - name: Test Dynamic Build
run: nix develop -c zig build -fstage1 -Dstatic=false run: nix develop -c zig build -Dstatic=false

View File

@ -5,7 +5,7 @@ init:
# Slightly cursed way that we setup a dev version of this locally on NixOS. # Slightly cursed way that we setup a dev version of this locally on NixOS.
dev/install: 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 if [ -f "/etc/NIXOS" ]; then patchelf --set-rpath "${LD_LIBRARY_PATH}" zig-out/bin/ghostty; fi
mkdir -p ${HOME}/bin mkdir -p ${HOME}/bin
cp zig-out/bin/ghostty ${HOME}/bin/devtty cp zig-out/bin/ghostty ${HOME}/bin/devtty