Skip to content

Commit

Permalink
ci: switch to rust-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
francisdb committed Jan 17, 2025
1 parent 1361f83 commit bea4aca
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,8 @@ jobs:
run: sudo apt-get install g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
if: contains(matrix.platform.os, 'ubuntu')
- 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-${{ hashFiles('**/Cargo.lock') }}
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Rust' step
Uses Step
uses 'Swatinem/rust-cache' with ref 'v2', not a pinned commit hash
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down

0 comments on commit bea4aca

Please sign in to comment.