Upgrade to the latest cargo-dist version (#7092)

Notably includes support for
[`UV_INSTALL_DIR`](https://github.com/axodotdev/cargo-dist/blob/main/CHANGELOG.md#app-branded-installer-environment-variables)
This commit is contained in:
Zanie Blue 2024-09-05 13:30:33 -05:00 committed by GitHub
parent bb61513952
commit b36b7badff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 7 deletions

View File

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

View File

@ -270,9 +270,9 @@ inherits = "release"
# Config for 'cargo dist' # Config for 'cargo dist'
[workspace.metadata.dist] [workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) # The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.18.0" cargo-dist-version = "0.22.1"
# CI backends to support # CI backends to support
ci = ["github"] ci = "github"
# The installers to generate for each app # The installers to generate for each app
installers = ["shell", "powershell"] installers = ["shell", "powershell"]
# The archive format to use for windows builds (defaults .zip) # The archive format to use for windows builds (defaults .zip)
@ -300,13 +300,13 @@ targets = [
] ]
# Whether to auto-include files like READMEs, LICENSEs, and CHANGELOGs (default true) # Whether to auto-include files like READMEs, LICENSEs, and CHANGELOGs (default true)
auto-includes = false auto-includes = false
# Whether cargo-dist should create a GitHub Release or use an existing draft # Whether cargo-dist should create a Github Release or use an existing draft
create-release = true create-release = true
# Publish jobs to run in CI # Which actions to run on pull requests
pr-run-mode = "skip" pr-run-mode = "skip"
# Whether CI should trigger releases with dispatches instead of tag pushes # Whether CI should trigger releases with dispatches instead of tag pushes
dispatch-releases = true dispatch-releases = true
# The stage during which the GitHub Release should be created # Which phase cargo-dist should use to create the GitHub release
github-release = "announce" github-release = "announce"
# Whether CI should include auto-generated code to build local artifacts # Whether CI should include auto-generated code to build local artifacts
build-local-artifacts = false build-local-artifacts = false
@ -314,9 +314,11 @@ build-local-artifacts = false
local-artifacts-jobs = ["./build-binaries", "./build-docker"] local-artifacts-jobs = ["./build-binaries", "./build-docker"]
# Publish jobs to run in CI # Publish jobs to run in CI
publish-jobs = ["./publish-pypi"] publish-jobs = ["./publish-pypi"]
# Announcement jobs to run in CI # Post-announce jobs to run in CI
post-announce-jobs = ["./publish-docs"] post-announce-jobs = ["./publish-docs"]
# Custom permissions for GitHub Jobs # Custom permissions for GitHub Jobs
github-custom-job-permissions = { "build-docker" = { packages = "write", contents = "read" } } github-custom-job-permissions = { "build-docker" = { packages = "write", contents = "read" } }
# Whether to install an updater program # Whether to install an updater program
install-updater = false install-updater = false
# Path that installers should place binaries in
install-path = "CARGO_HOME"