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
@@ -55,16 +55,17 @@ jobs:
5555 env :
5656 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5757 steps :
58- - uses : actions/checkout@v4
58+ - uses : actions/checkout@v6
5959 with :
60+ persist-credentials : false
6061 submodules : recursive
6162 - name : Install dist
6263 # we specify bash to get pipefail; it guards against the `curl` command
6364 # failing. otherwise `sh` won't catch that `curl` returned non-0
6465 shell : bash
65- run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.28 .0/cargo-dist-installer.sh | sh"
66+ run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.31 .0/cargo-dist-installer.sh | sh"
6667 - name : Cache dist
67- uses : actions/upload-artifact@v4
68+ uses : actions/upload-artifact@v6
6869 with :
6970 name : cargo-dist-cache
7071 path : ~/.cargo/bin/dist
8081 cat plan-dist-manifest.json
8182 echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
8283 - name : " Upload dist-manifest.json"
83- uses : actions/upload-artifact@v4
84+ uses : actions/upload-artifact@v6
8485 with :
8586 name : artifacts-plan-dist-manifest
8687 path : plan-dist-manifest.json
@@ -114,8 +115,9 @@ jobs:
114115 - name : enable windows longpaths
115116 run : |
116117 git config --global core.longpaths true
117- - uses : actions/checkout@v4
118+ - uses : actions/checkout@v6
118119 with :
120+ persist-credentials : false
119121 submodules : recursive
120122 - name : Install Rust non-interactively if not already installed
121123 if : ${{ matrix.container }}
@@ -128,7 +130,7 @@ jobs:
128130 run : ${{ matrix.install_dist.run }}
129131 # Get the dist-manifest
130132 - name : Fetch local artifacts
131- uses : actions/download-artifact@v4
133+ uses : actions/download-artifact@v7
132134 with :
133135 pattern : artifacts-*
134136 path : target/distrib/
@@ -155,7 +157,7 @@ jobs:
155157
156158 cp dist-manifest.json "$BUILD_MANIFEST_NAME"
157159 - name : " Upload artifacts"
158- uses : actions/upload-artifact@v4
160+ uses : actions/upload-artifact@v6
159161 with :
160162 name : artifacts-build-local-${{ join(matrix.targets, '_') }}
161163 path : |
@@ -172,18 +174,19 @@ jobs:
172174 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
173175 BUILD_MANIFEST_NAME : target/distrib/global-dist-manifest.json
174176 steps :
175- - uses : actions/checkout@v4
177+ - uses : actions/checkout@v6
176178 with :
179+ persist-credentials : false
177180 submodules : recursive
178181 - name : Install cached dist
179- uses : actions/download-artifact@v4
182+ uses : actions/download-artifact@v7
180183 with :
181184 name : cargo-dist-cache
182185 path : ~/.cargo/bin/
183186 - run : chmod +x ~/.cargo/bin/dist
184187 # Get all the local artifacts for the global tasks to use (for e.g. checksums)
185188 - name : Fetch local artifacts
186- uses : actions/download-artifact@v4
189+ uses : actions/download-artifact@v7
187190 with :
188191 pattern : artifacts-*
189192 path : target/distrib/
@@ -201,7 +204,7 @@ jobs:
201204
202205 cp dist-manifest.json "$BUILD_MANIFEST_NAME"
203206 - name : " Upload artifacts"
204- uses : actions/upload-artifact@v4
207+ uses : actions/upload-artifact@v6
205208 with :
206209 name : artifacts-build-global
207210 path : |
@@ -213,26 +216,27 @@ jobs:
213216 - plan
214217 - build-local-artifacts
215218 - build-global-artifacts
216- # Only run if we're "publishing", and only if local and global didn't fail (skipped is fine)
217- 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') }}
219+ # Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine)
220+ 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') }}
218221 env :
219222 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
220223 runs-on : " ubuntu-latest"
221224 outputs :
222225 val : ${{ steps.host.outputs.manifest }}
223226 steps :
224- - uses : actions/checkout@v4
227+ - uses : actions/checkout@v6
225228 with :
229+ persist-credentials : false
226230 submodules : recursive
227231 - name : Install cached dist
228- uses : actions/download-artifact@v4
232+ uses : actions/download-artifact@v7
229233 with :
230234 name : cargo-dist-cache
231235 path : ~/.cargo/bin/
232236 - run : chmod +x ~/.cargo/bin/dist
233237 # Fetch artifacts from scratch-storage
234238 - name : Fetch artifacts
235- uses : actions/download-artifact@v4
239+ uses : actions/download-artifact@v7
236240 with :
237241 pattern : artifacts-*
238242 path : target/distrib/
@@ -245,14 +249,14 @@ jobs:
245249 cat dist-manifest.json
246250 echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
247251 - name : " Upload dist-manifest.json"
248- uses : actions/upload-artifact@v4
252+ uses : actions/upload-artifact@v6
249253 with :
250254 # Overwrite the previous copy
251255 name : artifacts-dist-manifest
252256 path : dist-manifest.json
253257 # Create a GitHub Release while uploading all files to it
254258 - name : " Download GitHub Artifacts"
255- uses : actions/download-artifact@v4
259+ uses : actions/download-artifact@v7
256260 with :
257261 pattern : artifacts-*
258262 path : artifacts
@@ -285,6 +289,7 @@ jobs:
285289 env :
286290 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
287291 steps :
288- - uses : actions/checkout@v4
292+ - uses : actions/checkout@v6
289293 with :
294+ persist-credentials : false
290295 submodules : recursive
0 commit comments