Skip to content

Commit 55876fd

Browse files
authored
Merge pull request #102 from ynqa/v0.7.0/dev
v0.6.2
2 parents eee2078 + 4bb3f49 commit 55876fd

File tree

10 files changed

+672
-736
lines changed

10 files changed

+672
-736
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# This file was autogenerated by dist: https://github.com/astral-sh/cargo-dist
1+
# This file was autogenerated by dist: https://axodotdev.github.io/cargo-dist
22
#
3-
# Copyright 2025 Astral Software Inc.
3+
# Copyright 2022-2024, axodotdev
44
# SPDX-License-Identifier: MIT or Apache-2.0
55
#
66
# CI that:
@@ -56,16 +56,17 @@ jobs:
5656
env:
5757
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858
steps:
59-
- uses: actions/checkout@v4
59+
- uses: actions/checkout@v6
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/astral-sh/cargo-dist/releases/download/v0.28.3/cargo-dist-installer.sh | sh"
67+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.4/cargo-dist-installer.sh | sh"
6768
- name: Cache dist
68-
uses: actions/upload-artifact@v4
69+
uses: actions/upload-artifact@v6
6970
with:
7071
name: cargo-dist-cache
7172
path: ~/.cargo/bin/dist
@@ -81,7 +82,7 @@ jobs:
8182
cat plan-dist-manifest.json
8283
echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
8384
- name: "Upload dist-manifest.json"
84-
uses: actions/upload-artifact@v4
85+
uses: actions/upload-artifact@v6
8586
with:
8687
name: artifacts-plan-dist-manifest
8788
path: plan-dist-manifest.json
@@ -115,8 +116,9 @@ jobs:
115116
- name: enable windows longpaths
116117
run: |
117118
git config --global core.longpaths true
118-
- uses: actions/checkout@v4
119+
- uses: actions/checkout@v6
119120
with:
121+
persist-credentials: false
120122
submodules: recursive
121123
- name: Install Rust non-interactively if not already installed
122124
if: ${{ matrix.container }}
@@ -129,7 +131,7 @@ jobs:
129131
run: ${{ matrix.install_dist.run }}
130132
# Get the dist-manifest
131133
- name: Fetch local artifacts
132-
uses: actions/download-artifact@v4
134+
uses: actions/download-artifact@v7
133135
with:
134136
pattern: artifacts-*
135137
path: target/distrib/
@@ -156,7 +158,7 @@ jobs:
156158
157159
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
158160
- name: "Upload artifacts"
159-
uses: actions/upload-artifact@v4
161+
uses: actions/upload-artifact@v6
160162
with:
161163
name: artifacts-build-local-${{ join(matrix.targets, '_') }}
162164
path: |
@@ -173,18 +175,19 @@ jobs:
173175
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174176
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
175177
steps:
176-
- uses: actions/checkout@v4
178+
- uses: actions/checkout@v6
177179
with:
180+
persist-credentials: false
178181
submodules: recursive
179182
- name: Install cached dist
180-
uses: actions/download-artifact@v4
183+
uses: actions/download-artifact@v7
181184
with:
182185
name: cargo-dist-cache
183186
path: ~/.cargo/bin/
184187
- run: chmod +x ~/.cargo/bin/dist
185188
# Get all the local artifacts for the global tasks to use (for e.g. checksums)
186189
- name: Fetch local artifacts
187-
uses: actions/download-artifact@v4
190+
uses: actions/download-artifact@v7
188191
with:
189192
pattern: artifacts-*
190193
path: target/distrib/
@@ -202,7 +205,7 @@ jobs:
202205
203206
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
204207
- name: "Upload artifacts"
205-
uses: actions/upload-artifact@v4
208+
uses: actions/upload-artifact@v6
206209
with:
207210
name: artifacts-build-global
208211
path: |
@@ -214,26 +217,27 @@ jobs:
214217
- plan
215218
- build-local-artifacts
216219
- build-global-artifacts
217-
# Only run if we're "publishing", and only if local and global didn't fail (skipped is fine)
218-
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') }}
220+
# Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine)
221+
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') }}
219222
env:
220223
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
221224
runs-on: "ubuntu-22.04"
222225
outputs:
223226
val: ${{ steps.host.outputs.manifest }}
224227
steps:
225-
- uses: actions/checkout@v4
228+
- uses: actions/checkout@v6
226229
with:
230+
persist-credentials: false
227231
submodules: recursive
228232
- name: Install cached dist
229-
uses: actions/download-artifact@v4
233+
uses: actions/download-artifact@v7
230234
with:
231235
name: cargo-dist-cache
232236
path: ~/.cargo/bin/
233237
- run: chmod +x ~/.cargo/bin/dist
234238
# Fetch artifacts from scratch-storage
235239
- name: Fetch artifacts
236-
uses: actions/download-artifact@v4
240+
uses: actions/download-artifact@v7
237241
with:
238242
pattern: artifacts-*
239243
path: target/distrib/
@@ -246,14 +250,14 @@ jobs:
246250
cat dist-manifest.json
247251
echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
248252
- name: "Upload dist-manifest.json"
249-
uses: actions/upload-artifact@v4
253+
uses: actions/upload-artifact@v6
250254
with:
251255
# Overwrite the previous copy
252256
name: artifacts-dist-manifest
253257
path: dist-manifest.json
254258
# Create a GitHub Release while uploading all files to it
255259
- name: "Download GitHub Artifacts"
256-
uses: actions/download-artifact@v4
260+
uses: actions/download-artifact@v7
257261
with:
258262
pattern: artifacts-*
259263
path: artifacts
@@ -286,13 +290,14 @@ jobs:
286290
GITHUB_EMAIL: "admin+bot@axo.dev"
287291
if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }}
288292
steps:
289-
- uses: actions/checkout@v4
293+
- uses: actions/checkout@v6
290294
with:
295+
persist-credentials: true
291296
repository: "ynqa/homebrew-tap"
292297
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
293298
# So we have access to the formula
294299
- name: Fetch homebrew formulae
295-
uses: actions/download-artifact@v4
300+
uses: actions/download-artifact@v7
296301
with:
297302
pattern: artifacts-*
298303
path: Formula/
@@ -332,6 +337,7 @@ jobs:
332337
env:
333338
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
334339
steps:
335-
- uses: actions/checkout@v4
340+
- uses: actions/checkout@v6
336341
with:
342+
persist-credentials: false
337343
submodules: recursive

0 commit comments

Comments
 (0)