Skip to content

chore: fix typo (#4153) #894

chore: fix typo (#4153)

chore: fix typo (#4153) #894

name: Unused Rust crate check
permissions:
contents: read
concurrency:
group: dep-check-${{ github.head_ref || 'ci_unused_deps' }}
cancel-in-progress: true
on:
push:
branches: [master]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
unused_deps_check:
name: Rust check ${{ matrix.check }} (${{ matrix.rust-target }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [nightly]
rust-target: [x86_64-unknown-linux-gnu]
check: [unused-dependencies]
env:
RUST_BACKTRACE: full
RUSTV: ${{ matrix.rust }}
TARGET: ${{ matrix.rust-target }}
steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ matrix.rust }} toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.rust-target }}
- name: Install Zig
run: ./actions/zig-install.sh ${{ matrix.os }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.rust-target }}-${{ matrix.check }}
- name: Unused dependencies test
if: ${{ matrix.check == 'unused-dependencies' }}
run: make check-udeps