CI: add debug step + fallback git clone if workspace is empty
Some checks failed
CI / test (push) Successful in 1m9s
Build & Release / build-linux-x86_64 (push) Failing after 12s
Build & Release / release (push) Has been cancelled
Build & Release / build-linux-aarch64 (push) Has been cancelled
Build & Release / build-linux-armv7 (push) Has been cancelled
Some checks failed
CI / test (push) Successful in 1m9s
Build & Release / build-linux-x86_64 (push) Failing after 12s
Build & Release / release (push) Has been cancelled
Build & Release / build-linux-aarch64 (push) Has been cancelled
Build & Release / build-linux-armv7 (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,30 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: rust:1.86-slim
|
image: rust:1.86-slim
|
||||||
steps:
|
steps:
|
||||||
|
- name: Debug workspace
|
||||||
|
run: |
|
||||||
|
echo "PWD: $(pwd)"
|
||||||
|
echo "HOME: $HOME"
|
||||||
|
echo "GITHUB_WORKSPACE: ${GITHUB_WORKSPACE:-unset}"
|
||||||
|
ls -la .
|
||||||
|
ls -la .. || true
|
||||||
|
find / -name "Cargo.toml" 2>/dev/null | head -5 || true
|
||||||
|
|
||||||
|
- name: Install git
|
||||||
|
run: apt-get update && apt-get install -y --no-install-recommends git
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
run: |
|
||||||
|
git config --global --add safe.directory '*'
|
||||||
|
if [ -f "Cargo.toml" ]; then
|
||||||
|
echo "Code already in workspace"
|
||||||
|
else
|
||||||
|
echo "Cloning repo..."
|
||||||
|
git clone --depth 1 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git /tmp/src
|
||||||
|
cp -a /tmp/src/. .
|
||||||
|
fi
|
||||||
|
ls -la Cargo.toml
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test -- --test-threads=1
|
run: cargo test -- --test-threads=1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user