Retire rpi2 bb jetson #34
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: [ main ] | |
paths: | |
- '.github/workflows/rust-codestyle.yml' | |
- 'binding/rust/**/*.rs' | |
- 'demo/rust/**/*.rs' | |
pull_request: | |
branches: [ main, '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 | |
defaults: | |
run: | |
working-directory: binding/rust | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rust pre-build | |
run: bash copy.sh | |
- name: Rust dependencies | |
run: sudo apt install libasound2-dev -y | |
- name: Rust pre-build | |
run: bash copy.sh | |
working-directory: binding/rust | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
# ************** REMOVE AFTER RELEASE ******************** | |
- name: Build Rust SDK | |
run: ./copy.sh | |
working-directory: binding/rust | |
# ******************************************************** | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
check-rust-demo-codestyle: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: demo/rust | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rust dependencies | |
run: sudo apt install libasound2-dev -y | |
- name: Rust pre-build | |
run: bash copy.sh | |
working-directory: binding/rust | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
# ************** REMOVE AFTER RELEASE ******************** | |
- name: Build Rust SDK | |
run: ./copy.sh | |
working-directory: binding/rust | |
# ******************************************************** | |
- name: Run clippy | |
run: cargo clippy -- -D warnings |