From b42125ce0c84d38a12e5942e3ec747c0dc2f12b4 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 27 Aug 2026 22:05:29 +0000 Subject: [PATCH] ci: share target dir between CLI build and tauri build steps cargo build without --target writes to target/release/, while tauri build --target aarch64-apple-darwin writes to target/aarch64-apple-darwin/release/ even for the same triple (macos-latest is arm64). These two disjoint directories meant the tauri build step recompiled the entire dependency graph from scratch instead of reusing the CLI build's cache, roughly doubling job time. --- .github/workflows/cli-binary.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli-binary.yml b/.github/workflows/cli-binary.yml index 19a25ac1..45d36584 100644 --- a/.github/workflows/cli-binary.yml +++ b/.github/workflows/cli-binary.yml @@ -43,7 +43,7 @@ jobs: npm run build - name: Build release CLI binary - run: cargo build --release --locked --bin treq + run: cargo build --release --locked --bin treq --target aarch64-apple-darwin - name: Run CLI with filesystem writes denied env: @@ -51,11 +51,11 @@ jobs: # dynamically; libduckdb-sys's rpath link-arg doesn't propagate from # its build script into this binary, so point the loader at the # prebuilt dylib libduckdb-sys copies alongside the other deps. - DYLD_LIBRARY_PATH: ${{ github.workspace }}/target/release/deps + DYLD_LIBRARY_PATH: ${{ github.workspace }}/target/aarch64-apple-darwin/release/deps run: | sandbox-exec \ -p '(version 1) (allow default) (deny file-write*)' \ - target/release/treq --help > "$RUNNER_TEMP/treq-help.txt" + target/aarch64-apple-darwin/release/treq --help > "$RUNNER_TEMP/treq-help.txt" grep -F "Treq - Stacking ADE" "$RUNNER_TEMP/treq-help.txt" grep -F "Usage: treq" "$RUNNER_TEMP/treq-help.txt"