Skip to content

Commit 65ca861

Browse files
TrueDoctorKeavon
andauthored
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>
1 parent 3b91d02 commit 65ca861

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ jobs:
4747
command: check bans licenses sources
4848
manifest-path: libraries/rawkit/Cargo.toml
4949

50-
# Full build and tests on self-hosted runner
50+
# Build the web app on the self-hosted wasm runner
5151
build:
52-
runs-on: self-hosted
52+
runs-on: [self-hosted, target/wasm]
5353
permissions:
5454
contents: write
5555
deployments: write
@@ -121,6 +121,32 @@ jobs:
121121
cd frontend
122122
npm run lint
123123
124+
# Run the Rust tests on the self-hosted native runner
125+
test:
126+
runs-on: [self-hosted, target/native]
127+
env:
128+
RUSTC_WRAPPER: /usr/bin/sccache
129+
CARGO_INCREMENTAL: 0
130+
SCCACHE_DIR: /var/lib/github-actions/.cache
131+
132+
steps:
133+
- name: 📥 Clone and checkout repository
134+
uses: actions/checkout@v3
135+
136+
- name: 🚦 Check if CI can be skipped
137+
id: skip-check
138+
uses: cariad-tech/merge-queue-ci-skipper@main
139+
140+
- name: 🦀 Install the latest Rust
141+
if: steps.skip-check.outputs.skip-check != 'true'
142+
run: |
143+
rustup update stable
144+
145+
- name: 🦀 Fetch Rust dependencies
146+
if: steps.skip-check.outputs.skip-check != 'true'
147+
run: |
148+
cargo fetch --locked
149+
124150
- name: 🧪 Run Rust tests
125151
if: steps.skip-check.outputs.skip-check != 'true'
126152
env:

.github/workflows/deploy-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111

1212
jobs:
1313
deploy:
14-
runs-on: self-hosted
14+
runs-on: [self-hosted, target/wasm]
1515
permissions:
1616
contents: write
1717
deployments: write

0 commit comments

Comments
 (0)