-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Use script from rust-bitcoin-maintainer-tools
We have a CI script in the `rust-bitcoin-maintainer-tools` repository, lets use it.
- Loading branch information
Showing
8 changed files
with
171 additions
and
74 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# rust-miniscript workflow notes | ||
|
||
We are attempting to run max 20 parallel jobs using GitHub actions (usage limit for free tier). | ||
|
||
ref: https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration | ||
|
||
The minimal/recent lock files are handled by CI (`rust.yml`). | ||
|
||
## Jobs | ||
|
||
Run from `rust.yml` unless stated otherwise. Total 11 jobs. | ||
|
||
1. `Stable - minimal` | ||
2. `Stable - recent` | ||
3. `Nightly - minimal` | ||
4. `Nightly - recent` | ||
5. `MSRV - minimal` | ||
6. `Integration - 0.18.0` | ||
7. `Integration - 0.18.1` | ||
8. `Integration - 0.19.0.1` | ||
9. `Integration - 0.19.1` | ||
10. `Integration - 0.20.0` | ||
11. `Integration - 0.21.0` |
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Test all these features with "std" enabled. | ||
FEATURES_WITH_STD="" | ||
|
||
# Test all these features without "std" enabled. | ||
FEATURES_WITHOUT_STD="verifymessage" | ||
|
||
# Run these examples. | ||
EXAMPLES="retry_client:verifymessage" |
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,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Crates in this workspace to test (excl. fuzz an integration-tests). | ||
CRATES=("json" "client") |
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,45 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Run the integration test optionally downloading Bitcoin Core binary if BITCOINVERSION is set. | ||
|
||
set -euo pipefail | ||
|
||
REPO_DIR=$(git rev-parse --show-toplevel) | ||
|
||
# Make all cargo invocations verbose. | ||
export CARGO_TERM_VERBOSE=true | ||
|
||
main() { | ||
# If a specific version of Bitcoin Core is set then download the binary. | ||
if [ -n "${BITCOINVERSION+x}" ]; then | ||
download_binary | ||
fi | ||
|
||
need_cmd bitcoind | ||
|
||
cd integration_test | ||
./run.sh | ||
} | ||
|
||
download_binary() { | ||
wget https://bitcoincore.org/bin/bitcoin-core-$BITCOINVERSION/bitcoin-$BITCOINVERSION-x86_64-linux-gnu.tar.gz | ||
tar -xzvf bitcoin-$BITCOINVERSION-x86_64-linux-gnu.tar.gz | ||
export PATH=$PATH:$(pwd)/bitcoin-$BITCOINVERSION/bin | ||
} | ||
|
||
err() { | ||
echo "$1" >&2 | ||
exit 1 | ||
} | ||
|
||
need_cmd() { | ||
if ! command -v "$1" > /dev/null 2>&1 | ||
then err "need '$1' (command not found)" | ||
fi | ||
} | ||
|
||
# | ||
# Main script | ||
# | ||
main "$@" | ||
exit 0 |
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Test all these features with "std" enabled. | ||
FEATURES_WITH_STD="" | ||
|
||
# Test all these features without "std" enabled. | ||
FEATURES_WITHOUT_STD="" | ||
|
||
# Run these examples. | ||
EXAMPLES="" |