use advisory file lock for the RGB runtime lock #157
Workflow file for this run
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: Format code | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| components: rustfmt | |
| - name: Format | |
| run: cargo fmt --all -- --check --config format_code_in_doc_comments=true | |
| - name: Format c-ffi bindings | |
| working-directory: ./bindings/c-ffi | |
| run: | | |
| make format | |
| git diff --exit-code | |
| - name: Format uniffi bindings | |
| working-directory: ./bindings/uniffi | |
| run: cargo fmt -- --check |