Skip to content

Commit b96b5ae

Browse files
authored
scripts/build-bpf.sh: Move contract binaries to target/pyth/{solana|pythnet} (#380)
* scripts: Move contract binaries to target/pyth/{solana|pythnet} This change attempts to provide both contract flavors as a result of the Docker build. Making both available will help with completing deployment to both environments. * check-size.sh: Revert extra arg; rearrange build-bpf.sh instead
1 parent a2e6577 commit b96b5ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/build-bpf.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ cargo-build-bpf -- --locked -Z build-std=std,panic_abort -Z build-std-features=p
2828
sha256sum ./target/**/*.so
2929
echo "Checking size of pyth_oracle.so for mainnet"
3030
./scripts/check-size.sh 81760
31+
mkdir -p target/pyth/solana/
32+
mv target/deploy/pyth_oracle.so target/pyth/solana/pyth_oracle_solana.so
3133

3234
cargo-build-bpf -- --locked -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --features pythnet
3335
sha256sum ./target/**/*.so
3436
echo "Checking size of pyth_oracle.so for pythnet"
3537
./scripts/check-size.sh 88429
38+
mkdir -p target/pyth/pythnet/
39+
mv target/deploy/pyth_oracle.so target/pyth/pythnet/pyth_oracle_pythnet.so

0 commit comments

Comments
 (0)