Skip to content
Open
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
6 changes: 2 additions & 4 deletions .github/actions/setup-rbmt/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ runs:
shell: bash
run: |
cargo install \
--git https://git.rust-bitcoin.org/rust-bitcoin/rust-bitcoin-maintainer-tools \
--rev "$(cat rbmt-version)" \
cargo-rbmt \
--locked
--locked \
"cargo-rbmt@$(grep '^rbmt\.version' Cargo.toml | cut -d'"' -f2)"

- name: "Install Rust toolchains via cargo-rbmt"
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cron-weekly-update-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install cargo-rbmt
run: cargo install --git https://github.com/rust-bitcoin/rust-bitcoin-maintainer-tools.git --rev $(cat rbmt-version) cargo-rbmt --locked
run: cargo install --locked "cargo-rbmt@$(grep '^rbmt\.version' Cargo.toml | cut -d'"' -f2)"
- name: Update nightly toolchain in Cargo.toml
run: |
cargo rbmt toolchains --update-nightly
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/cron-weekly-update-rbmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ jobs:
git clone --filter=blob:none --no-checkout \
https://github.com/rust-bitcoin/rust-bitcoin-maintainer-tools.git /tmp/rbmt
LATEST_TAG=$(git -C /tmp/rbmt tag --sort=-version:refname | grep '^cargo-rbmt-' | head -1)
LATEST_HASH=$(git -C /tmp/rbmt rev-parse "${LATEST_TAG}^{}")
CURRENT_HASH=$(cat rbmt-version)
if [ -n "${LATEST_HASH}" ] && [ "${LATEST_HASH}" != "${CURRENT_HASH}" ]; then
echo "${LATEST_HASH}" > rbmt-version
echo "rbmt_hash=${LATEST_HASH}" >> "${GITHUB_ENV}"
echo "rbmt_semver=${LATEST_TAG#cargo-rbmt-}" >> "${GITHUB_ENV}"
LATEST_VERSION=${LATEST_TAG#cargo-rbmt-}
CURRENT_VERSION=$(grep '^rbmt\.version' Cargo.toml | cut -d'"' -f2)
if [ -n "${LATEST_VERSION}" ] && [ "${LATEST_VERSION}" != "${CURRENT_VERSION}" ]; then
sed -i "s/^rbmt\.version = .*/rbmt.version = \"${LATEST_VERSION}\"/" Cargo.toml
echo "rbmt_semver=${LATEST_VERSION}" >> "${GITHUB_ENV}"
echo "changes_made=true" >> "${GITHUB_ENV}"
else
echo "rbmt-version is already at the latest release. Not opening any PR."
echo "rbmt version is already at the latest release. Not opening any PR."
echo "changes_made=false" >> "${GITHUB_ENV}"
fi
- name: Create Pull Request
Expand All @@ -41,6 +40,6 @@ jobs:
committer: Update RBMT Bot <bot@example.com>
title: Automated weekly update to cargo-rbmt (to ${{ env.rbmt_semver }})
body: |
Automated update to rbmt-version by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
Automated update to Cargo.toml workspace metadata by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
commit-message: Automated update to cargo-rbmt-${{ env.rbmt_semver }}
branch: create-pull-request/weekly-rbmt-update
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ workspace = true
members = ["fuzz"]
exclude = ["embedded", "bitcoind-tests"]

[workspace.metadata]
rbmt.version = "0.5.3"

[workspace.metadata.rbmt.toolchains]
nightly = "nightly-2026-08-21"
stable = "1.95.0"
Expand Down
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ lint:

# Run the formatter.
fmt:
cargo +nightly fmt
cargo rbmt fmt

# Check the formatting.
fmt-check:
cargo +nightly fmt --check
cargo rbmt fmt --check

# Run the benchmark suite.
bench:
RUSTFLAGS='--cfg=bench' cargo +nightly bench benchmarks
RUSTFLAGS='--cfg=bench' cargo rbmt run --toolchain nightly -- bench benchmarks

# Build the docs (same as for docs.rs).
docsrs:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly rustdoc --all-features -- -D rustdoc::broken-intra-doc-links
cargo rbmt docs

# Quick and dirty CI useful for pre-push checks.
sane: fmt-check lint
Expand Down
1 change: 0 additions & 1 deletion rbmt-version

This file was deleted.