build: release v0.5.0 #178
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: Linux | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUST_BACKTRACE: short | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.74 | |
override: true | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 | |
- name: Compile (all features) | |
run: cargo build --all-features --all-targets --workspace | |
# Don't test benches. | |
- name: Run Rust tests (all features) | |
timeout-minutes: 30 | |
run: cargo test --all-features --examples --tests --workspace | |
# Note that `--doc` can't be combined with other tests. | |
- name: Run Rust doc-tests (all features) | |
timeout-minutes: 30 | |
run: cargo test --all-features --doc --workspace | |
- name: Compile (no features) | |
run: cargo build --no-default-features --all-targets --workspace | |
# Don't test benches. | |
- name: Run Rust tests (no features) | |
timeout-minutes: 30 | |
run: cargo test --no-default-features --examples --tests --workspace | |
# Note that `--doc` can't be combined with other tests. | |
- name: Run Rust doc-tests (no features) | |
timeout-minutes: 30 | |
run: cargo test --no-default-features --doc --workspace |