From 1747f8fdd56f603bcc893588f49ef54ab64e2040 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 9 Jun 2025 16:40:07 +0200 Subject: [PATCH] ci: run Tauri builds if `rust/gui-client` changes (#9481) We don't need to rebuild the Tauri clients every time we change Rust code but we almost certainly want to rebuild them if we change any code in the client itself so we can smoke test them. --------- Signed-off-by: Thomas Eizinger Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58eaa3cc0..a80c7dcca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - name: Plan jobs to run id: plan run: | - jobs="static-analysis,elixir,rust,kotlin,swift,codeql,build-artifacts,build-perf-artifacts"; + jobs="static-analysis,elixir,rust,tauri,kotlin,swift,codeql,build-artifacts,build-perf-artifacts"; # For workflow_dispatch or workflow_call, run all jobs if [ "${{ github.event_name }}" = "workflow_dispatch" ] || [ "${{ github.event_name }}" = "workflow_call" ]; then @@ -73,6 +73,9 @@ jobs: if grep -q '^rust/' changed_files.txt; then jobs="${jobs},rust,kotlin,swift,build-artifacts,build-perf-artifacts" fi + if grep -q '^rust/gui-client/' changed_files.txt; then + jobs="${jobs},tauri" + fi if grep -q '^elixir/' changed_files.txt; then jobs="${jobs},elixir,codeql,build-artifacts" fi @@ -138,6 +141,11 @@ jobs: if: contains(needs.planner.outputs.jobs_to_run, 'rust') uses: ./.github/workflows/_rust.yml secrets: inherit + tauri: + needs: planner + if: contains(needs.planner.outputs.jobs_to_run, 'tauri') + uses: ./.github/workflows/_tauri.yml + secrets: inherit static-analysis: needs: planner if: contains(needs.planner.outputs.jobs_to_run, 'static-analysis')