Skip to content

Commit 0bbc138

Browse files
Upgrade to latest cargo-dist version (#13416)
## Summary Follows astral-sh/uv#7092.
1 parent ff11db6 commit 0bbc138

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Diff for: .github/workflows/release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was autogenerated by cargo-dist: https://opensource.axo.dev/cargo-dist/
2+
#
13
# Copyright 2022-2024, axodotdev
24
# SPDX-License-Identifier: MIT or Apache-2.0
35
#
@@ -64,7 +66,7 @@ jobs:
6466
# we specify bash to get pipefail; it guards against the `curl` command
6567
# failing. otherwise `sh` won't catch that `curl` returned non-0
6668
shell: bash
67-
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.18.0/cargo-dist-installer.sh | sh"
69+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.22.1/cargo-dist-installer.sh | sh"
6870
- name: Cache cargo-dist
6971
uses: actions/upload-artifact@v4
7072
with:

Diff for: Cargo.toml

+7-5
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ inherits = "release"
233233
# Config for 'cargo dist'
234234
[workspace.metadata.dist]
235235
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
236-
cargo-dist-version = "0.18.0"
236+
cargo-dist-version = "0.22.1"
237237
# CI backends to support
238-
ci = ["github"]
238+
ci = "github"
239239
# The installers to generate for each app
240240
installers = ["shell", "powershell"]
241241
# The archive format to use for windows builds (defaults .zip)
@@ -266,21 +266,23 @@ targets = [
266266
auto-includes = false
267267
# Whether cargo-dist should create a GitHub Release or use an existing draft
268268
create-release = true
269-
# Publish jobs to run in CI
269+
# Which actions to run on pull requests
270270
pr-run-mode = "skip"
271271
# Whether CI should trigger releases with dispatches instead of tag pushes
272272
dispatch-releases = true
273-
# The stage during which the GitHub Release should be created
273+
# Which phase cargo-dist should use to create the GitHub release
274274
github-release = "announce"
275275
# Whether CI should include auto-generated code to build local artifacts
276276
build-local-artifacts = false
277277
# Local artifacts jobs to run in CI
278278
local-artifacts-jobs = ["./build-binaries", "./build-docker"]
279279
# Publish jobs to run in CI
280280
publish-jobs = ["./publish-pypi", "./publish-wasm"]
281-
# Announcement jobs to run in CI
281+
# Post-announce jobs to run in CI
282282
post-announce-jobs = ["./notify-dependents", "./publish-docs", "./publish-playground"]
283283
# Custom permissions for GitHub Jobs
284284
github-custom-job-permissions = { "build-docker" = { packages = "write", contents = "read" }, "publish-wasm" = { contents = "read", id-token = "write", packages = "write" } }
285285
# Whether to install an updater program
286286
install-updater = false
287+
# Path that installers should place binaries in
288+
install-path = "CARGO_HOME"

0 commit comments

Comments
 (0)