Upgrade to Buildjet runner with 8 CPUs #293
Workflow file for this run
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: Build and Test Nova | |
on: | |
merge_group: | |
push: | |
branches: [ dev, zeromorph ] | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: [ dev, zeromorph ] | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
RUSTUP_MAX_RETRIES: 10 | |
RUST_BACKTRACE: short | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: buildjet-8vcpu-ubuntu-2204 | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Rust | |
uses: actions-rs/toolchain@v1 | |
- uses: taiki-e/install-action@nextest | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build, with benches & examples | |
run: cargo build --profile dev-ci --benches --examples | |
- name: Linux Tests in parallel, with nextest profile ci and cargo profile dev-ci | |
run: | | |
cargo nextest run --profile ci --workspace --cargo-profile dev-ci | |
misc: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: rustup target add wasm32-unknown-unknown | |
- name: Wasm build | |
run: cargo build --target wasm32-unknown-unknown | |
- name: Check Rustfmt Code Style | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Check clippy warnings | |
run: cargo xclippy -D warnings | |
- name: Doctests | |
run: cargo test --doc --workspace |