File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments