| 1 | name: Build Cargo Workspace |
| 2 | |
| 3 | on: |
| 4 | workflow_call: |
| 5 | workflow_dispatch: |
| 6 | push: |
| 7 | branches: |
| 8 | - "*" |
| 9 | pull_request: |
| 10 | branches: ["main"] |
| 11 | |
| 12 | env: |
| 13 | CARGO_TERM_COLOR: always |
| 14 | |
| 15 | jobs: |
| 16 | build: |
| 17 | name: Build Cargo Workspace |
| 18 | runs-on: ubuntu-latest |
| 19 | steps: |
| 20 | - uses: actions/checkout@v3 |
| 21 | |
| 22 | - uses: actions-rs/toolchain@v1 |
| 23 | with: |
| 24 | toolchain: stable |
| 25 | override: true |
| 26 | |
| 27 | - uses: Swatinem/rust-cache@v2 |
| 28 | name: Cache dependencies |
| 29 | |
| 30 | - uses: actions-rs/cargo@v1 |
| 31 | name: Build crate |
| 32 | with: |
| 33 | command: build |
| 34 | args: --verbose --all-features |