ci: Limit downstream spl projects (#24328)

* ci: Limit downstream spl projects

* Build governance mock addin program before governance
This commit is contained in:
Jon Cinque 2022-04-15 11:11:12 +02:00 committed by GitHub
parent 052c64b01a
commit 3d0d7dc8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 2 deletions

View File

@ -38,6 +38,19 @@ example_helloworld() {
spl() {
(
# Mind the order!
PROGRAMS=(
token/program
token/program-2022
token/program-2022-test
associated-token-account/program
feature-proposal/program
governance/addin-mock/program
governance/program
memo/program
name-service/program
stake-pool/program
)
set -x
rm -rf spl
git clone https://github.com/solana-labs/solana-program-library.git spl
@ -47,8 +60,9 @@ spl() {
$cargo build
$cargo test
$cargo_build_bpf
$cargo_test_bpf
for program in "${PROGRAMS[@]}"; do
$cargo_test_bpf --manifest-path "$program"/Cargo.toml
done
)
}