Skip to content

Commit 420c547

Browse files
committed
Use direct cargo-build-sbf in hash probe
1 parent 1469047 commit 420c547

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/hash-probe.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,25 @@ jobs:
2727
sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.20/install)"
2828
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
2929
30-
- name: Install Anchor CLI 0.30.0
31-
run: |
32-
cargo install anchor-cli --version 0.30.0 --root /tmp/anchor-cli-0.30.0-unlocked
33-
echo "/tmp/anchor-cli-0.30.0-unlocked/bin" >> "$GITHUB_PATH"
34-
3530
- name: Show Tool Versions
3631
run: |
32+
rustc --version
33+
cargo --version
3734
solana --version
3835
cargo-build-sbf --version
39-
anchor --version
4036
4137
- name: Build Programs
4238
run: |
43-
CARGO_TARGET_DIR=/tmp/hash-probe-amm anchor build --program-name scale_amm
44-
CARGO_TARGET_DIR=/tmp/hash-probe-vmm anchor build --program-name scale_vmm
39+
cargo-build-sbf --manifest-path programs/scale_amm/Cargo.toml --sbf-out-dir /tmp/hash-probe-amm
40+
cargo-build-sbf --manifest-path programs/scale_vmm/Cargo.toml --sbf-out-dir /tmp/hash-probe-vmm
4541
4642
- name: Print Executable Hashes
4743
run: |
4844
python3 - <<'PY'
4945
import hashlib
5046
paths = {
51-
"scale_amm": "/tmp/hash-probe-amm/deploy/scale_amm.so",
52-
"scale_vmm": "/tmp/hash-probe-vmm/deploy/scale_vmm.so",
47+
"scale_amm": "/tmp/hash-probe-amm/scale_amm.so",
48+
"scale_vmm": "/tmp/hash-probe-vmm/scale_vmm.so",
5349
}
5450
for name, path in paths.items():
5551
with open(path, "rb") as fh:

0 commit comments

Comments
 (0)