Skip to content

Commit

Permalink
solana: Allow building contracts via docker (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer authored Feb 4, 2025
1 parent 0e65cd1 commit 7e1b9b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chains/solana/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,11 @@ ccip-router-contracts-go-tests:
build-contracts:
cd ./contracts && anchor build

# Note on CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
# Sparse index significantly speeds up dependency fetching, supposedly default in 1.70 but anchor build was still using a slow git download
.PHONY: docker-build-contracts
docker-build-contracts:
docker run --rm -it -v $(shell pwd)/contracts:/workdir -e CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse ${ANCHOR_IMAGE} anchor build

.PHONY: solana-checks
solana-checks: clippy anchor-go-gen format gomodtidy lint-go rust-tests go-tests build-contracts

0 comments on commit 7e1b9b7

Please sign in to comment.