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 <keavon@keavon.com>
This commit is contained in:
Dennis Kobert 2026-02-24 10:37:00 +01:00 committed by GitHub
parent 3b91d02fff
commit 65ca8610eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 29 additions and 3 deletions

View File

@ -47,9 +47,9 @@ jobs:
command: check bans licenses sources command: check bans licenses sources
manifest-path: libraries/rawkit/Cargo.toml 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: build:
runs-on: self-hosted runs-on: [self-hosted, target/wasm]
permissions: permissions:
contents: write contents: write
deployments: write deployments: write
@ -121,6 +121,32 @@ jobs:
cd frontend cd frontend
npm run lint 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 - name: 🧪 Run Rust tests
if: steps.skip-check.outputs.skip-check != 'true' if: steps.skip-check.outputs.skip-check != 'true'
env: env:

View File

@ -11,7 +11,7 @@ env:
jobs: jobs:
deploy: deploy:
runs-on: self-hosted runs-on: [self-hosted, target/wasm]
permissions: permissions:
contents: write contents: write
deployments: write deployments: write