Remove a lot of pop().unwrap() #23006
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
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '**/Cargo.toml' | |
| - '**/Cargo.lock' | |
| - '**/rust-toolchain.toml' | |
| - '**.rs' | |
| - .github/workflows/cargo-check.yml | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| name: cargo check | |
| jobs: | |
| cargocheck: | |
| name: cargo check | |
| runs-on: namespace-profile-ubuntu-2-cores | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Use correct Rust toolchain | |
| shell: bash | |
| run: | | |
| [ -e rust-toolchain.toml ] || cp rust/rust-toolchain.toml ./ | |
| - name: Install rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| cache-workspaces: rust | |
| - name: Run check | |
| run: | | |
| cd rust | |
| # We specifically want to test the disable-println feature | |
| # Since it is not enabled by default, we need to specify it | |
| # This is used in kcl-lsp | |
| cargo check --workspace --features disable-println --features pyo3 --features cli |