-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(workflow): move most scripts to their own executables (#8005)
* ref(workflow): move most scripts to their own executable * debug: JSON value * fix(scripts): move remaining script to its own file * fix(script): revert to the correct disk search logic * fix(scripts) * fix(scripts): use correct NETWORK with lowercase * fix: typo * fix(script): wrong variable assignment * fix(script): use correct return values inside a function * fix(script): fix value assigment * test: debug * fix(script): make disk conditions simpler * fix(script): export variables to the `shell` executing the script * fix(script): do not fail on expected unbound variables * test: output * fix(scripts): do not `echo` a variable more than once * fix(scripts): typo * docs(workflow): adds a description at the top of each file (#8009) Co-authored-by: Marek <[email protected]> Co-authored-by: teor <[email protected]> --------- Co-authored-by: teor <[email protected]> Co-authored-by: Alfredo Garcia <[email protected]> Co-authored-by: Marek <[email protected]>
- Loading branch information
1 parent
9ace6f8
commit d85b010
Showing
25 changed files
with
446 additions
and
273 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -93,26 +93,9 @@ jobs: | |
# | ||
# These steps should be kept up to date with the release checklist. | ||
# | ||
# TODO: move these steps into a script which is run in the release checklist and CI | ||
- name: Crate release dry run | ||
run: | | ||
set -ex | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Automated Release Test" | ||
# This script must be the same as: | ||
# https://github.com/ZcashFoundation/zebra/blob/main/.github/PULL_REQUEST_TEMPLATE/release-checklist.md#update-crate-versions | ||
# with an extra `--no-confirm` argument for non-interactive testing. | ||
cargo release version --verbose --execute --no-confirm --allow-branch '*' --workspace --exclude zebrad beta | ||
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebrad patch | ||
cargo release replace --verbose --execute --no-confirm --allow-branch '*' --package zebrad | ||
cargo release commit --verbose --execute --no-confirm --allow-branch '*' | ||
# Check the release will work using a dry run | ||
# | ||
# Workaround unpublished dependency version errors by skipping those crates: | ||
# https://github.com/crate-ci/cargo-release/issues/691 | ||
# | ||
# TODO: check all crates after fixing these errors | ||
cargo release publish --verbose --dry-run --allow-branch '*' --workspace --exclude zebra-consensus --exclude zebra-utils --exclude zebrad | ||
./.github/workflows/scripts/release-crates-dry-run.sh | ||
# TODO: actually do the release here | ||
#release-crates: | ||
|
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
Oops, something went wrong.