-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
78 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release Changed Crates | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Detect Changed Crates | ||
run: | | ||
chmod +x scripts/detect_changed_crates.sh | ||
CHANGED_CRATES=$(./scripts/detect_changed_crates.sh) | ||
echo "Changed crates: $CHANGED_CRATES" | ||
echo "changed_crates=$CHANGED_CRATES" >> $GITHUB_ENV | ||
- name: Install cargo-release | ||
run: cargo install cargo-release | ||
|
||
- name: Release Changed Crates with Pre-release Tags | ||
run: | | ||
for crate in ${{ env.changed_crates }}; do | ||
echo "Releasing $crate with pre-release tag 'b'" | ||
cd $crate | ||
cargo release pre --pre-release b --no-publish | ||
cd - | ||
done |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
2 changes: 1 addition & 1 deletion
2
contracts/finance/andromeda-weighted-distribution-splitter/Cargo.toml
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "andromeda-kernel" | ||
version = "1.2.0-b.3" | ||
version = "1.2.0-beta.3" | ||
authors = ["Connor Barr <[email protected]>"] | ||
edition = "2021" | ||
rust-version = "1.65.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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Script to detect crates with changes in dependencies | ||
|
||
# Get the list of changed files | ||
CHANGED_FILES=$(git diff --name-only HEAD^ HEAD) | ||
|
||
# Initialize an array for crates needing a version bump | ||
CRATES_TO_BUMP=() | ||
|
||
# Check each changed file | ||
for file in $CHANGED_FILES; do | ||
if [[ "$file" == */Cargo.toml || "$file" == */Cargo.lock ]]; then | ||
CRATE_DIR=$(dirname "$file") | ||
if [[ ! " ${CRATES_TO_BUMP[@]} " =~ " ${CRATE_DIR} " ]]; then | ||
CRATES_TO_BUMP+=("$CRATE_DIR") | ||
fi | ||
fi | ||
done | ||
|
||
# Output the crates that need a version bump | ||
echo "${CRATES_TO_BUMP[@]}" |
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