From 6743669e57961be506c3e249dc85261b05d51f4f Mon Sep 17 00:00:00 2001 From: Wes Date: Fri, 6 Feb 2026 13:13:22 -0700 Subject: [PATCH 1/2] Move staged CI workflow to root .github/workflows - Add path filters to only trigger on staged/** changes - Set working-directory default to staged/ - Update hermit and rust-cache paths for monorepo structure - Remove staged/.github/ directory --- .../ci.yml => .github/workflows/staged-ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) rename staged/.github/workflows/ci.yml => .github/workflows/staged-ci.yml (80%) diff --git a/staged/.github/workflows/ci.yml b/.github/workflows/staged-ci.yml similarity index 80% rename from staged/.github/workflows/ci.yml rename to .github/workflows/staged-ci.yml index 066649f..5137f78 100644 --- a/staged/.github/workflows/ci.yml +++ b/.github/workflows/staged-ci.yml @@ -1,14 +1,22 @@ -name: CI +name: Staged CI on: pull_request: branches: [main] + paths: + - "staged/**" push: branches: [main] + paths: + - "staged/**" env: CARGO_TERM_COLOR: always +defaults: + run: + working-directory: staged + jobs: check: name: Check @@ -18,11 +26,13 @@ jobs: # Install hermit (manages node, rust, just) - uses: cashapp/activate-hermit@v1 + with: + directory: staged # Cache Cargo dependencies - uses: Swatinem/rust-cache@v2 with: - workspaces: src-tauri + workspaces: staged/src-tauri # Install system dependencies for Tauri (Linux) - name: Install Tauri dependencies (Linux) From d9c67a9105bd7b9704558a3132ea09462c80bc4a Mon Sep 17 00:00:00 2001 From: Wes Date: Fri, 6 Feb 2026 13:16:13 -0700 Subject: [PATCH 2/2] Fix activate-hermit input: use working-directory instead of directory --- .github/workflows/staged-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/staged-ci.yml b/.github/workflows/staged-ci.yml index 5137f78..b7e9062 100644 --- a/.github/workflows/staged-ci.yml +++ b/.github/workflows/staged-ci.yml @@ -27,7 +27,7 @@ jobs: # Install hermit (manages node, rust, just) - uses: cashapp/activate-hermit@v1 with: - directory: staged + working-directory: staged # Cache Cargo dependencies - uses: Swatinem/rust-cache@v2