From 80c1499800b4db51ea5c32ece94d2032910c2737 Mon Sep 17 00:00:00 2001 From: David Abram Date: Sat, 10 Oct 2026 16:24:09 +0200 Subject: [PATCH] ci(nix): reuse macOS release build for CLI smoke test --- .github/workflows/pr-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index d0eb11083..5d4f078fb 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -44,7 +44,10 @@ jobs: run: | time nix flake check --fallback --print-build-logs + # On macOS release validation builds the same native CLI dependency + # closure, so run its smoke test there rather than building it twice. - name: Build and smoke-test native CLI + if: matrix.os == 'ubuntu-latest' run: | time nix build .#sce --fallback --out-link result --print-build-logs ./result/bin/sce --help @@ -79,3 +82,12 @@ jobs: - name: Build release package and audit portability run: | time nix build .#ci-checks --fallback --out-link result-ci-checks --print-build-logs + + # On Darwin, .#sce-release is the native CLI with commit metadata. + # Smoke-test that exact binary, which is already built by .#ci-checks. + - name: Smoke-test macOS release CLI + if: matrix.os == 'macos-latest' + run: | + ./result-ci-checks/sce-release/bin/sce --help + ./result-ci-checks/sce-release/bin/sce version +