diff --git a/.github/workflows/cargo-build.yml b/.github/workflows/cargo-build.yml index 88152c0f5e..4548a18557 100644 --- a/.github/workflows/cargo-build.yml +++ b/.github/workflows/cargo-build.yml @@ -7,15 +7,15 @@ on: - '**/Cargo.lock' - '**/rust-toolchain.toml' - '**.rs' - - .github/workflows/cargo-build.yml + - .github/workflows/cargo-check.yml pull_request: concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true -name: cargo build +name: cargo check jobs: - cargobuild: - name: cargo build + cargocheck: + name: cargo check runs-on: ubuntu-latest strategy: matrix: @@ -31,10 +31,10 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@v2.6.1 - - name: Run build + - name: Run check run: | cd "${{ matrix.dir }}" # 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 build --all --features disable-println --features pyo3 + cargo check --all --features disable-println --features pyo3