Release 0.13.1 #4
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
on: | |
push: | |
tags: | |
- quantities@** | |
jobs: | |
check: | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: ⬇️ checkout repository | |
uses: actions/checkout@v3 | |
- name: 🛠 setup cargo toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: ♻️ cache Rust dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: ${{ matrix.os }} | |
- name: ✅ run cargo check | |
run: | | |
cargo check | |
cargo check --all-features | |
test: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ checkout repository | |
uses: actions/checkout@v3 | |
- name: 🛠 setup cargo toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: 🛠 install cargo-hack | |
uses: baptiste0928/cargo-install@v2 | |
with: | |
crate: cargo-hack | |
- name: ♻️ cache Rust dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: ubuntu-latest | |
- name: 🛟 run cargo test | |
run: | | |
cargo hack test \ | |
--feature-powerset \ | |
--optional-deps \ | |
--group-features \ | |
mass,length,duration,area,volume,speed,acceleration,force,energy,\ | |
power,frequency,datavolume,datathroughput,temperature \ | |
--exclude-features doc | |
env: | |
TRYBUILD: overwrite | |
lint: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ checkout repository | |
uses: actions/checkout@v3 | |
- name: 🛠 setup cargo toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: ♻️ cache Rust dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: ubuntu-latest | |
- name: 🔍 run cargo clippy | |
run: | | |
cargo clippy --all-features |