bump ch32-data to a9c6362 #21
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| fmt-clippy: | |
| name: fmt + clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: { submodules: recursive } | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: fmt-clippy | |
| - name: rustfmt --check (algos + xtask) | |
| # rustfmt directly, not via cargo: `cargo fmt` requires workspace dep | |
| # resolution to succeed, but algos/* path-dep on `ch32-data/build/ch32-metapac` | |
| # which is generated by xtask AFTER the bootstrap step. | |
| run: | | |
| find algos xtask -name '*.rs' -not -path '*/target/*' -print0 \ | |
| | xargs -0 rustfmt --check --edition 2024 | |
| - name: cargo clippy (xtask) | |
| run: cargo clippy --manifest-path xtask/Cargo.toml -- -D warnings | |
| algos: | |
| name: algos/${{ matrix.crate }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| crate: [v0, v00x, v1, v3, l1, x0, h4, f1] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: { submodules: recursive } | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rust-src | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: ${{ matrix.crate }} | |
| - name: bootstrap ch32-data/build (generates ch32-metapac path dep target) | |
| run: cargo run --manifest-path xtask/Cargo.toml -- --bootstrap-only | |
| - name: cargo build --release | |
| working-directory: algos/${{ matrix.crate }} | |
| run: cargo build --release | |
| render: | |
| name: render YAMLs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: { submodules: recursive } | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rust-src | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: render | |
| - name: cargo run -p xtask | |
| run: cargo run --manifest-path xtask/Cargo.toml |