solana: Deterministic builds via Docker#646
Conversation
Solutions consideredCustom Docker stage ❌ Instead of spinning up Docker ourselves and building it,
This fails when trying to build for Anchor
This works similar to |
To verify that the solutions generate equivalent artifacts, I generated solana-verify get-executable-hash artifacts-solana-devnet/deploy/example_native_token_transfers.soAll 3 solutions resulted in the same hash ( |
5ece147 to
1becd63
Compare
…na CLI install domain
1becd63 to
0c4a3fe
Compare
This PR was initially based on wormhole-foundation/native-token-transfers#403. However, due to reasons mentioned in [this comment](wormhole-foundation/native-token-transfers#646 (comment)), the Dockerfile changes were reverted. tl;dr: This PR adds: * Add `artifacts-mainnet`, `artifacts-solana-devnet`, and `artifacts-tilt-devnet` Makefile target to generate verifiable build artifacts using `solana-verify build` * Remove `prod-build` Makefile target
This PR was initially based on #403. However, due to reasons mentioned in this comment, the Dockerfile changes were reverted.
tl;dr:
This PR adds:
artifacts-mainnet,artifacts-solana-devnet, andartifacts-tilt-devnetMakefile target to generate verifiable build artifacts usingsolana-verify buildprod-buildMakefile target