Do not use mimalloc on 32-bit PowerPC targets #35
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: Check format | |
on: | |
pull_request: | |
push: | |
branches: | |
- "master" | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{runner.os}}-cargo-format-${{hashFiles('**/Cargo.lock')}} | |
- name: Setup rust | |
run: | | |
rm /home/runner/.cargo/bin/{rustfmt,cargo-fmt} | |
rustup set profile minimal | |
rustup toolchain install nightly --component rustfmt,clippy | |
rustup default nightly | |
- name: Check format | |
run: | | |
cargo fmt --all -- --check | |
- name: Run clippy | |
run: | | |
cargo clippy --all-targets --locked -- -D warnings | |
- name: Run clippy (All features) | |
run: | | |
cargo clippy --locked --all-features -- -D warnings |