CI: set PATH in the workflow; add a toolchain diagnostic step
This commit is contained in:
@@ -9,6 +9,11 @@ on:
|
|||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
RUSTFLAGS: -D warnings
|
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:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@@ -39,6 +44,11 @@ jobs:
|
|||||||
runs-on: [self-hosted, Linux, ARM64, spark-1]
|
runs-on: [self-hosted, Linux, ARM64, spark-1]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- 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 fmt --all --check
|
||||||
- run: cargo clippy --workspace --all-targets --all-features
|
- run: cargo clippy --workspace --all-targets --all-features
|
||||||
- run: cargo test --workspace --all-features
|
- run: cargo test --workspace --all-features
|
||||||
|
|||||||
Reference in New Issue
Block a user