forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sbf-tools version to cargo target cache name on CI agents
- Loading branch information
1 parent
869cfc9
commit c7aa7fb
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Finds the version of sbf-tools used by this source tree. | ||
# | ||
# stdout of this script may be eval-ed. | ||
# | ||
|
||
here="$(dirname "$0")" | ||
|
||
SBF_TOOLS_VERSION=unknown | ||
|
||
cargo_build_bpf_main="${here}/../sdk/cargo-build-bpf/src/main.rs" | ||
if [[ -f "${cargo_build_bpf_main}" ]]; then | ||
version=$(sed -e 's/^.*bpf_tools_version\s*=\s*"\(v[0-9.]\+\)".*/\1/;t;d' "${cargo_build_bpf_main}") | ||
if [[ ${version} != '' ]]; then | ||
SBF_TOOLS_VERSION="${version}" | ||
else | ||
echo '--- unable to parse SBF_TOOLS_VERSION' | ||
fi | ||
else | ||
echo "--- '${cargo_build_bpf_main}' not present" | ||
fi | ||
|
||
echo SBF_TOOLS_VERSION="${SBF_TOOLS_VERSION}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters