Skip to content

Commit e2d08d2

Browse files
committed
Update cargo-dist to 0.30.2
1 parent bed6f3a commit e2d08d2

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was autogenerated by dist: https://opensource.axo.dev/cargo-dist/
1+
# This file was autogenerated by dist: https://axodotdev.github.io/cargo-dist
22
#
33
# Copyright 2022-2024, axodotdev
44
# SPDX-License-Identifier: MIT or Apache-2.0
@@ -47,7 +47,7 @@ on:
4747
jobs:
4848
# Run 'dist plan' (or host) to determine what tasks we need to do
4949
plan:
50-
runs-on: "ubuntu-20.04"
50+
runs-on: "ubuntu-22.04"
5151
outputs:
5252
val: ${{ steps.plan.outputs.manifest }}
5353
tag: ${{ !github.event.pull_request && github.ref_name || '' }}
@@ -58,12 +58,13 @@ jobs:
5858
steps:
5959
- uses: actions/checkout@v5
6060
with:
61+
persist-credentials: false
6162
submodules: recursive
6263
- name: Install dist
6364
# we specify bash to get pipefail; it guards against the `curl` command
6465
# failing. otherwise `sh` won't catch that `curl` returned non-0
6566
shell: bash
66-
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.28.0/cargo-dist-installer.sh | sh"
67+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.2/cargo-dist-installer.sh | sh"
6768
- name: Cache dist
6869
uses: actions/upload-artifact@v5
6970
with:
@@ -117,6 +118,7 @@ jobs:
117118
git config --global core.longpaths true
118119
- uses: actions/checkout@v5
119120
with:
121+
persist-credentials: false
120122
submodules: recursive
121123
- name: Install Rust non-interactively if not already installed
122124
if: ${{ matrix.container }}
@@ -172,13 +174,14 @@ jobs:
172174
needs:
173175
- plan
174176
- build-local-artifacts
175-
runs-on: "ubuntu-20.04"
177+
runs-on: "ubuntu-22.04"
176178
env:
177179
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
178180
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
179181
steps:
180182
- uses: actions/checkout@v5
181183
with:
184+
persist-credentials: false
182185
submodules: recursive
183186
- name: Install cached dist
184187
uses: actions/download-artifact@v6
@@ -218,16 +221,17 @@ jobs:
218221
- plan
219222
- build-local-artifacts
220223
- build-global-artifacts
221-
# Only run if we're "publishing", and only if local and global didn't fail (skipped is fine)
222-
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') }}
224+
# Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine)
225+
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') }}
223226
env:
224227
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
225-
runs-on: "ubuntu-20.04"
228+
runs-on: "ubuntu-22.04"
226229
outputs:
227230
val: ${{ steps.host.outputs.manifest }}
228231
steps:
229232
- uses: actions/checkout@v5
230233
with:
234+
persist-credentials: false
231235
submodules: recursive
232236
- name: Install cached dist
233237
uses: actions/download-artifact@v6
@@ -286,10 +290,11 @@ jobs:
286290
# still allowing individual publish jobs to skip themselves (for prereleases).
287291
# "host" however must run to completion, no skipping allowed!
288292
if: ${{ always() && needs.host.result == 'success' }}
289-
runs-on: "ubuntu-20.04"
293+
runs-on: "ubuntu-22.04"
290294
env:
291295
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
292296
steps:
293297
- uses: actions/checkout@v5
294298
with:
299+
persist-credentials: false
295300
submodules: recursive

dist-workspace.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ members = ["cargo:."]
44
# Config for 'dist'
55
[dist]
66
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
7-
cargo-dist-version = "0.28.0"
7+
cargo-dist-version = "0.30.2"
88
# CI backends to support
99
ci = "github"
1010
# The installers to generate for each app

0 commit comments

Comments
 (0)