smartengine: add cpu_ms elapsed time metric (#4398) #1030
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: 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 |