[rust] Update h2 dependency to address CVE #414
Workflow file for this run
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: Rust CI | |
on: push | |
defaults: | |
run: | |
shell: bash | |
working-directory: pickup-rust | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install libraries | |
run: sudo apt-get install libasound2-dev | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
pickup-rust/target/ | |
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} | |
- name: Update rust toolchain | |
run: | | |
rustup update | |
rustup component add clippy | |
- name: 'Check format' | |
run: cargo fmt -- --check | |
- name: 'Run clippy linter' | |
run: cargo clippy --no-deps -- -Dwarnings | |
- name: 'Run tests' | |
run: cargo test |