From 65ca8610eb75afcba27d09837e76b0b97037b583 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Tue, 24 Feb 2026 10:37:00 +0100 Subject: [PATCH] Split CI job to run on dedicated runners for web and native build (#3812) * Split ci job to run on dedicated runners for web and native build * Trigger CI * Update labels * Update comment text --------- Co-authored-by: Keavon Chambers --- .github/workflows/ci.yml | 30 +++++++++++++++++++++++++++-- .github/workflows/deploy-master.yml | 2 +- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec614e91..63621a0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,9 +47,9 @@ jobs: command: check bans licenses sources manifest-path: libraries/rawkit/Cargo.toml - # Full build and tests on self-hosted runner + # Build the web app on the self-hosted wasm runner build: - runs-on: self-hosted + runs-on: [self-hosted, target/wasm] permissions: contents: write deployments: write @@ -121,6 +121,32 @@ jobs: cd frontend npm run lint + # Run the Rust tests on the self-hosted native runner + test: + runs-on: [self-hosted, target/native] + env: + RUSTC_WRAPPER: /usr/bin/sccache + CARGO_INCREMENTAL: 0 + SCCACHE_DIR: /var/lib/github-actions/.cache + + steps: + - name: ๐Ÿ“ฅ Clone and checkout repository + uses: actions/checkout@v3 + + - name: ๐Ÿšฆ Check if CI can be skipped + id: skip-check + uses: cariad-tech/merge-queue-ci-skipper@main + + - name: ๐Ÿฆ€ Install the latest Rust + if: steps.skip-check.outputs.skip-check != 'true' + run: | + rustup update stable + + - name: ๐Ÿฆ€ Fetch Rust dependencies + if: steps.skip-check.outputs.skip-check != 'true' + run: | + cargo fetch --locked + - name: ๐Ÿงช Run Rust tests if: steps.skip-check.outputs.skip-check != 'true' env: diff --git a/.github/workflows/deploy-master.yml b/.github/workflows/deploy-master.yml index 64ece22e..852af0ad 100644 --- a/.github/workflows/deploy-master.yml +++ b/.github/workflows/deploy-master.yml @@ -11,7 +11,7 @@ env: jobs: deploy: - runs-on: self-hosted + runs-on: [self-hosted, target/wasm] permissions: contents: write deployments: write