Added get rotator position endpoint #10
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v4 | |
| - name: 'Set up Rust environment' | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| targets: x86_64-unknown-linux-gnu | |
| - name: 'Cache Rust dependencies' | |
| uses: actions/cache@v4 | |
| with: | |
| path: target | |
| key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.OS }}-build- | |
| - name: 'Install libudev' | |
| run: sudo apt install libudev-dev | |
| - name: 'Build' | |
| run: cargo build --verbose --target x86_64-unknown-linux-gnu | |
| - name: 'Run clippy' | |
| run: cargo clippy --verbose --target x86_64-unknown-linux-gnu -- -D warnings |