Skip to content

Commit 0147094

Browse files
committed
verbose debug outputs for cargo.lock version
1 parent d6e6d0a commit 0147094

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/anchor.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
use-avm: false
113113
- name: Display Versions and Install pnpm
114114
run: |
115+
cargo-build-sbf --version
115116
solana -V
116117
solana-keygen new --no-bip39-passphrase
117118
rustc -V
@@ -127,9 +128,24 @@ jobs:
127128
echo "Building and Testing $project"
128129
cd "$project" || return 1
129130
131+
# Check Cargo.lock version before build
132+
if [ -f "Cargo.lock" ]; then
133+
echo "Checking Cargo.lock version for $project"
134+
grep "^version = " Cargo.lock
135+
else
136+
echo "No Cargo.lock found for $project"
137+
fi
138+
130139
# Run anchor build
131140
if ! anchor build; then
132141
echo "::error::anchor build failed for $project"
142+
143+
# Check Cargo.lock version after failed build
144+
if [ -f "Cargo.lock" ]; then
145+
echo "Cargo.lock version after failed build:"
146+
grep "^version = " Cargo.lock
147+
fi
148+
133149
echo "$project: anchor build failed" >> $GITHUB_WORKSPACE/failed_projects.txt
134150
rm -rf target
135151
cd - > /dev/null

0 commit comments

Comments
 (0)