chore: Release framehop version 0.13.0 #83
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: Rust | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- name: Test | |
run: cargo test --verbose | |
- name: Check formatting | |
run: cargo fmt -- --check --verbose | |
# clippy all features, we use `hack` below to confirm each feature works | |
- name: Clippy | |
run: cargo clippy --verbose --all-features -- -Dwarnings | |
hack: | |
# cargo-hack checks combinations of feature flags to ensure that features are all additive | |
# which is required for feature unification | |
runs-on: ubuntu-latest | |
name: check features | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cargo install cargo-hack | |
uses: taiki-e/install-action@cargo-hack | |
- name: cargo hack | |
run: cargo hack --feature-powerset check | |
no_std: | |
# Check for no_std compatibility | |
runs-on: ubuntu-latest | |
name: ${{ matrix.target }} | |
strategy: | |
matrix: | |
target: [thumbv7m-none-eabi, aarch64-unknown-none] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: rustup target add ${{ matrix.target }} | |
run: rustup target add ${{ matrix.target }} | |
- name: cargo check | |
run: cargo check --target ${{ matrix.target }} --no-default-features |