workflow: debug PATH + explicitly add /usr/local/bin to GITHUB_PATH
Build with clawstor cache / Cargo build (clawstor-cached) (pull_request) Failing after 5s
Build with clawstor cache / Cargo build (clawstor-cached) (pull_request) Failing after 5s
Runner reports claw-cargo MISSING even though it is at /usr/local/bin/claw-cargo. Debug what PATH the workflow inherits.
This commit is contained in:
@@ -20,8 +20,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "user: $(whoami)"
|
echo "user: $(whoami)"
|
||||||
echo "home: $HOME"
|
echo "home: $HOME"
|
||||||
|
echo "PATH: $PATH"
|
||||||
uname -a
|
uname -a
|
||||||
|
ls -la /usr/local/bin/claw-cargo 2>&1 | head -1
|
||||||
|
# Belt-and-braces: ensure both cargo and /usr/local/bin land on PATH.
|
||||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||||
|
echo "/usr/local/bin" >> $GITHUB_PATH
|
||||||
for bin in rustc cargo cmake pkg-config claw-cargo; do
|
for bin in rustc cargo cmake pkg-config claw-cargo; do
|
||||||
if command -v $bin >/dev/null 2>&1; then
|
if command -v $bin >/dev/null 2>&1; then
|
||||||
echo "$(command -v $bin) $($bin --version 2>&1 | head -1)"
|
echo "$(command -v $bin) $($bin --version 2>&1 | head -1)"
|
||||||
|
|||||||
Reference in New Issue
Block a user