build(deps): bump eframe from 0.29.1 to 0.30.0 #53
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: Rust | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "docs/**" | |
pull_request: | |
release: | |
types: [published] | |
workflow_dispatch: | |
concurrency: | |
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" | |
cancel-in-progress: true | |
env: | |
MSRV: "1.80" | |
CARGO_TERM_COLOR: always | |
PYTHON_PACKAGE_NAME: space_robotics_bench_py | |
GUI_PACKAGE_NAME: space_robotics_bench_gui | |
jobs: | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
## cargo fmt | |
- name: cargo fmt | |
run: cargo fmt --all --check --verbose | |
cargo: | |
needs: rustfmt | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- MSRV | |
- stable | |
- beta | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
save-if: ${{ github.event_name == 'push'}} | |
- uses: dtolnay/rust-toolchain@master | |
if: ${{ matrix.toolchain != 'MSRV' && matrix.toolchain != 'stable' }} | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- uses: dtolnay/rust-toolchain@master | |
if: ${{ matrix.toolchain == 'MSRV' }} | |
with: | |
toolchain: ${{ env.MSRV }} | |
- uses: dtolnay/rust-toolchain@master | |
if: ${{ matrix.toolchain == 'stable' }} | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
components: clippy | |
## cargo check | |
- name: cargo check | |
run: cargo check --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --all-targets --verbose | |
- name: cargo check --no-default-features | |
run: cargo check --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --all-targets --no-default-features --verbose | |
- name: cargo check --all-features | |
run: cargo check --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --all-targets --all-features --verbose | |
## cargo test | |
- name: cargo test | |
run: cargo test --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --all-targets --verbose | |
- name: cargo test --no-default-features | |
run: cargo test --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --all-targets --no-default-features --verbose | |
- name: cargo test --all-features | |
run: cargo test --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --all-targets --all-features --verbose | |
## cargo test --doc | |
- name: cargo test --doc | |
run: cargo test --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --doc --verbose | |
- name: cargo test --doc --no-default-features | |
run: cargo test --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --doc --no-default-features --verbose | |
- name: cargo test --doc --all-features | |
run: cargo test --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --doc --all-features --verbose | |
## [stable] cargo clippy | |
- name: stable | cargo clippy | |
if: ${{ matrix.toolchain == 'stable' }} | |
run: cargo clippy --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --all-targets --all-features --no-deps --verbose -- --deny warnings | |
## [stable] cargo doc | |
- name: stable | cargo doc --document-private-items | |
if: ${{ matrix.toolchain == 'stable' }} | |
run: cargo doc --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --all-features --no-deps --document-private-items --verbose | |
## [stable] Code coverage | |
- name: stable | Install cargo llvm-cov for code coverage | |
uses: taiki-e/install-action@cargo-llvm-cov | |
if: ${{ matrix.toolchain == 'stable' }} | |
## [stable] Generate coverage with cargo llvm-cov | |
- name: stable | Generate coverage | |
if: ${{ matrix.toolchain == 'stable' }} | |
run: cargo llvm-cov --workspace --exclude ${{ env.PYTHON_PACKAGE_NAME }} --exclude ${{ env.GUI_PACKAGE_NAME }} --all-features --lcov --output-path lcov.info | |
## [stable] Upload coverage to codecov.io | |
- name: stable | Upload coverage | |
if: ${{ matrix.toolchain == 'stable' }} | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: lcov.info | |
fail_ci_if_error: false | |
deny: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: EmbarkStudios/cargo-deny-action@v2 | |
with: | |
command: check bans licenses sources |