vscode ctrl-b settings.json #16
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_fmt_auto_build_test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| rust_fmt_auto_build_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: cargo fmt -- --check | |
| run: cargo fmt -- --check | |
| - name: Run cache for rust dependencies | |
| uses: Swatinem/[email protected] | |
| - name: Configure sccache | |
| run: printf "RUSTC_WRAPPER=sccache\n" >> $GITHUB_ENV; printf "SCCACHE_GHA_ENABLED=true\n" >> $GITHUB_ENV | |
| - name: Run sccache-cache for artifacts | |
| uses: mozilla-actions/[email protected] | |
| - name: cargo clippy --no-deps | |
| run: cargo clippy --no-deps | |
| - name: install and cache cargo-auto | |
| uses: baptiste0928/[email protected] | |
| with: | |
| crate: cargo-auto | |
| - name: Cache for automation tasks | |
| uses: actions/[email protected] | |
| with: | |
| path: | | |
| automation_tasks_rs/.file_hashes.json | |
| automation_tasks_rs/target | |
| key: automation_tasks_rs | |
| - name: cargo auto build | |
| run: cargo auto build | |
| - name: cargo auto test | |
| run: cargo auto test |