deps: Update Rust Dependencies #470
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: build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
merge_group: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
strategy: | |
matrix: | |
mode: [dev, prod] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: cargo-bins/cargo-binstall@main | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ matrix.mode }} | |
- name: install native deps | |
run: sudo apt update && sudo apt install clang llvm pkg-config nettle-dev fontforge | |
- run: | | |
rustup toolchain install nightly | |
cargo +nightly binstall cargo-udeps | |
- run: cargo fmt -- --check | |
- run: ./download_font.sh | |
- run: cargo +nightly udeps --no-default-features --features ${{ matrix.mode }} | |
- uses: actions-rs/clippy-check@v1 | |
with: | |
toolchain: nightly | |
name: ${{ matrix.mode }} clippy | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --no-default-features --features ${{ matrix.mode }} | |
- name: test | |
run: cargo +nightly test --no-default-features --features ${{ matrix.mode }} |