Rpi5 Various #16
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 Codestyle | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths: | |
- '.github/workflows/rust-codestyle.yml' | |
- 'binding/rust/**/*.rs' | |
- 'demo/rust/**/*.rs' | |
pull_request: | |
branches: [ master, 'v[0-9]+.[0-9]+' ] | |
paths: | |
- '.github/workflows/rust-codestyle.yml' | |
- 'binding/rust/**/*.rs' | |
- 'demo/rust/**/*.rs' | |
env: | |
CARGO_TERM_COLOR: always | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
check-rust-binding-codestyle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rust pre-build | |
run: bash copy.sh | |
working-directory: binding/rust | |
- name: Rust dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt install libasound2-dev -y | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
working-directory: binding/rust | |
check-rust-filedemo-codestyle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rust dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt install libasound2-dev -y | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
working-directory: demo/rust/filedemo | |
check-rust-micdemo-codestyle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rust dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt install libasound2-dev -y | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
working-directory: demo/rust/micdemo |