T23: CI prints each runner's PATH and where rustup, rustc, fish and pwsh live, to find why Windows loses rustc and the Mac mini finds no fish or pwsh; a probe, gone with the fix
CI / platforms (windows-latest) (push) Failing after 8s
CI / macos (push) Failing after 8m6s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-15 10:26:06 -04:00
1 parent e3b5cfb514
commit e8ea95f491
1 file changed
+16
+16
View File
@@ -10,6 +10,10 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
- run: |
echo "PATH=$PATH"
ls -l /opt/homebrew/bin/fish /opt/homebrew/bin/pwsh /usr/local/bin/fish /usr/local/bin/pwsh || true
/bin/zsh -lc 'echo "login PATH=$PATH"; command -v brew fish pwsh' || true
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with:
toolchain: "1.95" toolchain: "1.95"
@@ -26,6 +30,18 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
- if: runner.os == 'Windows'
shell: powershell
run: |
$env:PATH -split ';'
"CARGO_HOME=$env:CARGO_HOME RUSTUP_HOME=$env:RUSTUP_HOME USERPROFILE=$env:USERPROFILE"
Get-Command rustup, rustc, cargo, pwsh, bash -All -ErrorAction SilentlyContinue | Format-Table -AutoSize Name, Source
Get-ChildItem "$env:USERPROFILE\.cargo\bin" -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Name
- if: runner.os == 'Windows'
shell: bash
run: |
echo "PATH=$PATH"
command -v rustup rustc cargo || true
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with:
toolchain: "1.95" toolchain: "1.95"