From 7f791fa74f54592600210a2d61e8446bb5201b12 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 24 Oct 2024 14:57:04 -0700 Subject: [PATCH] ci: test system package build --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0be64e3b..0c0a305d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,7 +50,7 @@ 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 -Dstatic=true -Dapp-runtime=glfw -Dtarget=${{ matrix.target }} + run: nix develop -c zig build -Dapp-runtime=glfw -Dtarget=${{ matrix.target }} build-bench: # We build benchmarks on large because it uses ReleaseFast @@ -332,8 +332,9 @@ jobs: - name: Test GLFW Build run: nix develop -c zig build -Dapp-runtime=glfw - - name: Test Dynamic Build - run: nix develop -c zig build -Dstatic=false + # This relies on the cache being populated by the commands above. + - name: Test System Build + run: nix develop -c zig build --system ${ZIG_GLOBAL_CACHE_DIR}/p test-macos: runs-on: namespace-profile-ghostty-macos