Skip to content

Commit 54eb732

Browse files
committed
ci: compare rustc version, CARGO_HOME, PWD between build and test
1 parent 98d1cb6 commit 54eb732

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/build-and-test.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,18 @@ jobs:
3030
cache-all-crates: true
3131
- name: Debug cache state (before build)
3232
run: |
33-
echo "=== target/ directory ==="
34-
ls -la target/ 2>/dev/null | head -20 || echo "No target dir"
33+
echo "=== RUSTC VERSION ==="
34+
rustc --version
35+
rustc --version --verbose | grep host
36+
echo "=== CARGO_HOME ==="
37+
echo $CARGO_HOME
38+
echo "=== PWD ==="
39+
pwd
3540
echo "=== fingerprint count ==="
3641
ls target/debug/.fingerprint/ 2>/dev/null | wc -l || echo "No fingerprints"
3742
echo "=== COMPILED ARTIFACTS (deps/) ==="
3843
ls target/debug/deps/ 2>/dev/null | wc -l || echo "No deps dir"
3944
ls target/debug/deps/libmemchr* 2>/dev/null || echo "No memchr artifacts"
40-
echo "=== registry/src ==="
41-
ls ~/.cargo/registry/src/ 2>/dev/null | head -5 || echo "No registry src"
42-
echo "=== memchr source file timestamp ==="
43-
ls -la ~/.cargo/registry/src/*/memchr-*/src/lib.rs 2>/dev/null || echo "No memchr src"
4445
shell: bash
4546
- name: Build workspace
4647
run: cargo test --workspace --all-features --no-run ${{ inputs.exclude-crates && format('--exclude {0}', inputs.exclude-crates) || '' }}
@@ -75,17 +76,18 @@ jobs:
7576
cache-all-crates: true
7677
- name: Debug cache state (after cache restore)
7778
run: |
78-
echo "=== target/ directory ==="
79-
ls -la target/ 2>/dev/null | head -20 || echo "No target dir"
79+
echo "=== RUSTC VERSION ==="
80+
rustc --version
81+
rustc --version --verbose | grep host
82+
echo "=== CARGO_HOME ==="
83+
echo $CARGO_HOME
84+
echo "=== PWD ==="
85+
pwd
8086
echo "=== fingerprint count ==="
8187
ls target/debug/.fingerprint/ 2>/dev/null | wc -l || echo "No fingerprints"
8288
echo "=== COMPILED ARTIFACTS (deps/) ==="
8389
ls target/debug/deps/ 2>/dev/null | wc -l || echo "No deps dir"
8490
ls target/debug/deps/libmemchr* 2>/dev/null || echo "No memchr artifacts"
85-
echo "=== registry/src ==="
86-
ls ~/.cargo/registry/src/ 2>/dev/null | head -5 || echo "No registry src"
87-
echo "=== memchr source file timestamp ==="
88-
ls -la ~/.cargo/registry/src/*/memchr-*/src/lib.rs 2>/dev/null || echo "No memchr src"
8991
shell: bash
9092
- uses: actions/setup-python@v5
9193
with:

0 commit comments

Comments
 (0)