Skip to content

Commit d3ba9c5

Browse files
committed
fix: match solana version for verified build
Signed-off-by: Reinis Martinsons <[email protected]>
1 parent 5845ec0 commit d3ba9c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/svm/buildHelpers/buildSolanaVerify.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ else
88
CARGO_OPTIONS=""
99
fi
1010

11+
SOLANA_VERSION=$(grep -A 2 'name = "solana-program"' Cargo.lock | grep 'version' | head -n 1 | cut -d'"' -f2)
12+
1113
for program in programs/*; do
1214
[ -d "$program" ] || continue
1315

1416
dir_name=$(basename "$program")
1517
program_name=${dir_name//-/_}
1618

1719
echo "Running verified build for $program_name"
18-
solana-verify build --library-name "$program_name" -- $CARGO_OPTIONS
20+
solana-verify build --library-name "$program_name" --base-image "solanafoundation/solana-verifiable-build:$SOLANA_VERSION" -- $CARGO_OPTIONS
1921

2022
# We don't need keypair files from the verified build and they cause permission issues on CI when Swatinem/rust-cache
2123
# tries to delete them.

0 commit comments

Comments
 (0)