From bb8f32ee618c16ce5a0549612b1ced54adaabf29 Mon Sep 17 00:00:00 2001 From: Karti Tripathi <176560021+karti-ai@users.noreply.github.com> Date: Wed, 2 Sep 2026 13:55:35 -0700 Subject: [PATCH] CI: set PATH in the workflow; add a toolchain diagnostic step --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2f3326..62b0907 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,11 @@ on: env: CARGO_TERM_COLOR: always RUSTFLAGS: -D warnings + # The runner's .path/.env files are not reliably applied, so PATH is set + # here where it demonstrably is. /opt/rust holds the isolated toolchain. + PATH: /opt/rust/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + RUSTUP_HOME: /opt/rust/rustup + CARGO_HOME: /opt/rust/cargo concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -39,6 +44,11 @@ jobs: runs-on: [self-hosted, Linux, ARM64, spark-1] steps: - uses: actions/checkout@v5 + - name: toolchain + run: | + echo "PATH=$PATH" + command -v cargo || echo "cargo NOT on PATH" + cargo --version - run: cargo fmt --all --check - run: cargo clippy --workspace --all-targets --all-features - run: cargo test --workspace --all-features