Skip to content

Commit c667ebe

Browse files
committed
feat(ci): add shadow-shared-cpu-spike workflow for OS-49 Phase 2
Signed-off-by: Jonas Toelke <jtoelke@nvidia.com>
1 parent 4483c86 commit c667ebe

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Shadow — Shared CPU Spike
2+
3+
# OS-49 Phase 2 / PR 1 — non-blocking spike. Runs `cargo check` on the
4+
# nv-gha-runners shared CPU pool (`linux-{amd64,arm64}-cpu8`) with a
5+
# GHA-backed sccache.
6+
#
7+
# Plan, decision thresholds, and results live in the Linear doc attached
8+
# to OS-126 ("OS-126 — Shared CPU spike plan & results"). Dispatch this
9+
# workflow 4–5 times after merge and record numbers there.
10+
11+
on:
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
packages: read
17+
18+
env:
19+
CARGO_TERM_COLOR: always
20+
CARGO_INCREMENTAL: "0"
21+
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
# Wire sccache (already RUSTC_WRAPPER in mise.toml) to the GHA cache
23+
# backend instead of the EKS memcached used by ARC.
24+
SCCACHE_GHA_ENABLED: "true"
25+
26+
jobs:
27+
rust-check:
28+
name: cargo check (${{ matrix.runner }})
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
runner: [linux-amd64-cpu8, linux-arm64-cpu8]
33+
runs-on: ${{ matrix.runner }}
34+
container:
35+
image: ghcr.io/nvidia/openshell/ci:latest
36+
credentials:
37+
username: ${{ github.actor }}
38+
password: ${{ secrets.GITHUB_TOKEN }}
39+
timeout-minutes: 60
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- name: Install tools
44+
run: mise install
45+
46+
- name: Cache Rust target and registry
47+
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
48+
with:
49+
shared-key: shadow-shared-cpu-spike-${{ matrix.runner }}
50+
cache-directories: .cache/sccache
51+
52+
- name: cargo check
53+
run: mise x -- cargo check --workspace --all-targets
54+
55+
- name: sccache stats
56+
if: always()
57+
run: mise x -- sccache --show-stats

0 commit comments

Comments
 (0)