From f9e4e2b53e32a1cd81dbe0234254f8cd66030383 Mon Sep 17 00:00:00 2001 From: Santiago Date: Sun, 14 Jun 2026 21:36:52 -0300 Subject: [PATCH] chore: update cargo-dist, drop self-updater and PR release dry-run Bump cargo-dist to 0.30.3 and adjust its config: - install-updater = false: stop bundling the axoupdate self-updater in the generated installers. - pr-run-mode = "skip": don't run the release dry-run on pull requests (PR validation already lives in ci.yml); the release workflow now fires only on version tags. release.yml is regenerated from dist-workspace.toml accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/release.yml | 7 +++---- dist-workspace.toml | 7 +++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa400f12..af68eaaa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,6 @@ permissions: # If there's a prerelease-style suffix to the version, then the release(s) # will be marked as a prerelease. on: - pull_request: push: tags: - '**[0-9]+.[0-9]+.[0-9]+*' @@ -66,7 +65,7 @@ jobs: # we specify bash to get pipefail; it guards against the `curl` command # failing. otherwise `sh` won't catch that `curl` returned non-0 shell: bash - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.29.0/cargo-dist-installer.sh | sh" + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.3/cargo-dist-installer.sh | sh" - name: Cache dist uses: actions/upload-artifact@v4 with: @@ -223,8 +222,8 @@ jobs: - plan - build-local-artifacts - build-global-artifacts - # Only run if we're "publishing", and only if local and global didn't fail (skipped is fine) - if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }} + # Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine) + if: ${{ always() && needs.plan.result == 'success' && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} runs-on: "ubuntu-22.04" diff --git a/dist-workspace.toml b/dist-workspace.toml index 2e8e3931..57274503 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -4,7 +4,7 @@ members = ["cargo:."] # Config for 'dist' [dist] # The preferred dist version to use in CI (Cargo.toml SemVer syntax) -cargo-dist-version = "0.29.0" +cargo-dist-version = "0.30.3" # CI backends to support ci = "github" # The installers to generate for each app @@ -16,7 +16,10 @@ install-path = "CARGO_HOME" # The preferred Rust toolchain to use in CI (rustup toolchain syntax) rust-toolchain-version = "1.89" # Whether to install an updater program -install-updater = true +install-updater = false +# Don't run the release dry-run on pull requests; only fire on version tags. +# (PR validation lives in ci.yml.) +pr-run-mode = "skip" # A GitHub repo to push Homebrew formulas to tap = "txpipe/homebrew-tap" # Publish jobs to run in CI