Skip to content

Commit 2215216

Browse files
committed
move to astral.sh cargo-dist
1 parent 6854f80 commit 2215216

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# This file was autogenerated by dist: https://opensource.axo.dev/cargo-dist/
1+
# This file was autogenerated by dist: https://github.com/astral-sh/cargo-dist
22
#
33
# Copyright 2022-2024, axodotdev
4+
# Copyright 2025 Astral Software Inc.
45
# SPDX-License-Identifier: MIT or Apache-2.0
56
#
67
# CI that:
@@ -47,7 +48,7 @@ on:
4748
jobs:
4849
# Run 'dist plan' (or host) to determine what tasks we need to do
4950
plan:
50-
runs-on: "ubuntu-24.04"
51+
runs-on: "ubuntu-22.04"
5152
outputs:
5253
val: ${{ steps.plan.outputs.manifest }}
5354
tag: ${{ !github.event.pull_request && github.ref_name || '' }}
@@ -58,12 +59,13 @@ jobs:
5859
steps:
5960
- uses: actions/checkout@v4
6061
with:
62+
persist-credentials: false
6163
submodules: recursive
6264
- name: Install dist
6365
# we specify bash to get pipefail; it guards against the `curl` command
6466
# failing. otherwise `sh` won't catch that `curl` returned non-0
6567
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"
68+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/cargo-dist/releases/download/v0.28.6/cargo-dist-installer.sh | sh"
6769
- name: Cache dist
6870
uses: actions/upload-artifact@v4
6971
with:
@@ -117,6 +119,7 @@ jobs:
117119
git config --global core.longpaths true
118120
- uses: actions/checkout@v4
119121
with:
122+
persist-credentials: false
120123
submodules: recursive
121124
- name: Install Rust non-interactively if not already installed
122125
if: ${{ matrix.container }}
@@ -168,13 +171,14 @@ jobs:
168171
needs:
169172
- plan
170173
- build-local-artifacts
171-
runs-on: "ubuntu-24.04"
174+
runs-on: "ubuntu-22.04"
172175
env:
173176
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174177
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
175178
steps:
176179
- uses: actions/checkout@v4
177180
with:
181+
persist-credentials: false
178182
submodules: recursive
179183
- name: Install cached dist
180184
uses: actions/download-artifact@v4
@@ -218,12 +222,13 @@ jobs:
218222
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') }}
219223
env:
220224
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
221-
runs-on: "ubuntu-24.04"
225+
runs-on: "ubuntu-22.04"
222226
outputs:
223227
val: ${{ steps.host.outputs.manifest }}
224228
steps:
225229
- uses: actions/checkout@v4
226230
with:
231+
persist-credentials: false
227232
submodules: recursive
228233
- name: Install cached dist
229234
uses: actions/download-artifact@v4
@@ -282,10 +287,11 @@ jobs:
282287
# still allowing individual publish jobs to skip themselves (for prereleases).
283288
# "host" however must run to completion, no skipping allowed!
284289
if: ${{ always() && needs.host.result == 'success' }}
285-
runs-on: "ubuntu-24.04"
290+
runs-on: "ubuntu-22.04"
286291
env:
287292
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
288293
steps:
289294
- uses: actions/checkout@v4
290295
with:
296+
persist-credentials: false
291297
submodules: recursive

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
[package]
23
authors = ["Alecto Irene Perez <perez.cs@pm.me>"]
34
description = """untree inverts the action of tree. \
@@ -16,6 +17,8 @@ readme = "README.md"
1617
exclude = ["inputs/"]
1718

1819

20+
allow-dirty = true
21+
1922
[lib]
2023
name = "untree"
2124
path = "lib/mod.rs"

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.28.6"
88
# CI backends to support
99
ci = "github"
1010
# The installers to generate for each app

0 commit comments

Comments
 (0)