fix: run just setup limited node version (#3305) #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cache Warmup | |
on: | |
push: | |
branches: | |
- main | |
# Only do cache warmup on main branch's latest commit | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
debug-build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
name: Warmup for debug build | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: ./.github/actions/setup-rust | |
with: | |
cache-key: debug-build | |
save-cache: ${{ github.ref_name == 'main' }} | |
- run: cargo check --workspace | |
- run: cargo test --workspace --no-run | |
release-build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
name: Warmup for release build | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: ./.github/actions/setup-rust | |
with: | |
cache-key: release-build | |
save-cache: ${{ github.ref_name == 'main' }} | |
- run: cargo check --release --workspace | |
- run: cargo test --release --workspace --no-run | |
release-build-wasi: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
name: Warmup for release build with WASI target | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: ./.github/actions/setup-rust | |
with: | |
cache-key: release-build-wasi | |
save-cache: ${{ github.ref_name == 'main' }} | |
- name: Add WASI target | |
run: rustup target add wasm32-wasip1-threads | |
- run: cargo check --release --workspace | |
- run: cargo test --release --workspace --no-run |