Skip to content

Commit

Permalink
ci: print spl commit hash for downstream tests (solana-labs#1718)
Browse files Browse the repository at this point in the history
* ci: print the commit hash of spl that is using in downstream project tests

* ci: trigger spl downstream tests correctly
  • Loading branch information
yihau authored and gregcusack committed Jun 14, 2024
1 parent a468477 commit a33c46f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/scripts/downstream-project-spl-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ git clone https://github.com/solana-labs/solana-program-library.git spl
# copy toolchain file to use solana's rust version
cp "$SOLANA_DIR"/rust-toolchain.toml spl/
cd spl || exit 1
echo "HEAD: $(git rev-parse HEAD)"

project_used_solana_version=$(sed -nE 's/solana-sdk = \"[>=<~]*(.*)\"/\1/p' <"token/program/Cargo.toml")
echo "used solana version: $project_used_solana_version"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/downstream-project-spl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
- "cargo-test-sbf"
- "ci/downstream-projects/run-spl.sh"
- ".github/workflows/downstream-project-spl.yml"
- ".github/scripts/downstream-project-spl-common.sh"
- ".github/scripts/downstream-project-spl-install-deps.sh"
workflow_call:
inputs:
branch:
Expand Down

0 comments on commit a33c46f

Please sign in to comment.