Skip to content

Commit

Permalink
Replace deprecated actions-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrozycki committed May 19, 2024
1 parent 8668423 commit b7a3ad3
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,11 @@ jobs:
- uses: actions/checkout@v3
- name: Install Rust toolchain
id: toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@1.74.1
with:
toolchain: 1.74.1
profile: minimal
components: rustfmt
components: clippy, rustfmt
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
run: cargo fmt --check
- name: Install dependencies
run: sudo apt update && sudo apt install libopencv-dev libxinerama-dev libxcursor-dev xorg-dev libgl1 libgl1-mesa-dev libudev-dev clang libclang-dev libasound2-dev
- name: Cache cargo dependencies
Expand All @@ -37,18 +32,10 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-rust-${{ steps.toolchain.outputs.rustc_hash }}
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-rust-${{ steps.toolchain.outputs.cachekey }}
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
run: cargo clippy
- name: Clippy WebUI with visualizer enabled
uses: actions-rs/cargo@v1
with:
command: clippy
args: -p rustmas-webui --features visualizer
run: cargo clippy -p rustmas-webui --features visualizer
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: -p lightfx
run: cargo test -p lightfx

0 comments on commit b7a3ad3

Please sign in to comment.