This repository was archived by the owner on Feb 22, 2026. It is now read-only.
chore: release v0.12.0 #380
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: rust | |
| on: | |
| push: | |
| branches: [main, staging, trying] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_TERM_COLOR: always | |
| CI: 1 | |
| RUSTFLAGS: "-W rust-2021-compatibility -D warnings" | |
| RUST_BACKTRACE: short | |
| jobs: | |
| check-format: | |
| # Skip draft release PRs | |
| if: github.actor_id != '166155226' || github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: dtolnay/rust-toolchain@1.85.0 | |
| with: | |
| components: rustfmt | |
| - name: Check format | |
| run: cargo fmt --all --check | |
| build: | |
| # Skip draft release PRs | |
| if: github.actor_id != '166155226' || github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: dtolnay/rust-toolchain@1.85.0 | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Build | |
| run: cargo build --workspace --features client-cynic,client-graphql-client,ws_stream_wasm | |
| - name: Build tests | |
| run: cargo test --workspace --no-run --features client-cynic,client-graphql-client,ws_stream_wasm | |
| - name: Run tests | |
| run: cargo test --workspace --features client-cynic,client-graphql-client,ws_stream_wasm | |
| - name: Build examples | |
| run: cargo build --workspace --features client-cynic,client-graphql-client,ws_stream_wasm --examples | |
| - name: Build examples tests | |
| run: cargo test --workspace --features client-cynic,client-graphql-client,ws_stream_wasm --examples --no-run | |
| - name: Run examples tests | |
| run: cargo test --workspace --features client-cynic,client-graphql-client,ws_stream_wasm --examples | |
| - name: Run clippy | |
| run: cargo clippy --all --features client-cynic,client-graphql-client,ws_stream_wasm |