Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Release
name: Publish Rust Release

on:
pull_request:
Expand All @@ -21,14 +21,16 @@ jobs:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Fetch PR commits
run: |
git fetch origin ${{ github.event.pull_request.base.sha }}
git fetch origin ${{ github.event.pull_request.head.sha }}

- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable

- name: Install cargo-release
run: cargo install cargo-release

- name: Configure git
run: |
git config user.name "github-actions[bot]"
Expand Down
167 changes: 0 additions & 167 deletions .github/workflows/release.yml

This file was deleted.

15 changes: 0 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -233,18 +233,3 @@ solana-program-runtime = { git = "https://github.com/Lightprotocol/agave", rev =
solana-bpf-loader-program = { git = "https://github.com/Lightprotocol/agave", rev = "be34dc76559e14921a2c8610f2fa2402bf0684bb" }
# Patch solana-program-memory to use older version where is_nonoverlapping is public
solana-program-memory = { git = "https://github.com/anza-xyz/solana-sdk", rev = "1c1d667f161666f12f5a43ebef8eda9470a8c6ee" }

[workspace.metadata.release]
allow-branch = ["main", "release/*"]
tag-name = "{{crate_name}}-v{{version}}"
publish = true
push = true
shared-version = false
sign-commit = false
sign-tag = false
# Update workspace dependencies when releasing
dependent-version = "upgrade"
# Don't consolidate commits - create one commit per package
consolidate-commits = false
# Don't verify (skip tests/build checks)
verify = false
2 changes: 1 addition & 1 deletion scripts/create-release-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ echo "$VERSION_CHANGES"

echo ""
echo "========================================="
echo "Running cargo release dry-run validation..."
echo "Running cargo publish dry-run validation..."
echo "========================================="
echo ""

Expand Down
11 changes: 5 additions & 6 deletions scripts/validate-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,19 @@ done

echo ""
if [ -n "$EXECUTE_FLAG" ]; then
echo "Running: cargo release publish $PACKAGE_ARGS --execute --no-confirm"
echo "Running: cargo publish $PACKAGE_ARGS --no-verify"
else
echo "Running: cargo publish $PACKAGE_ARGS --dry-run"
fi
echo "----------------------------------------"

# Native cargo 1.90.0+ handles dependency ordering for interdependent workspace crates
# Without --execute: dry-run validation using native cargo publish
# With --execute: use cargo-release for actual publish to crates.io
if [ -n "$EXECUTE_FLAG" ]; then
cargo release publish $PACKAGE_ARGS --execute --no-confirm
# Actual publish to crates.io using native cargo
# Skip verification to avoid build issues with interdependent packages
cargo publish $PACKAGE_ARGS --no-verify
else
# Use native cargo publish --dry-run with all packages at once
# This allows interdependent workspace crates to validate together
# Dry-run validation using native cargo publish
# Allow dirty state and skip verification due to cargo bug with unpublished dep hashes
cargo publish $PACKAGE_ARGS --dry-run --allow-dirty --no-verify
fi
Expand Down
Loading