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
4747jobs :
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@v4
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.27.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@v4
6970 with :
@@ -117,6 +118,7 @@ jobs:
117118 git config --global core.longpaths true
118119 - uses : actions/checkout@v4
119120 with :
121+ persist-credentials : false
120122 submodules : recursive
121123 - name : Install Rust non-interactively if not already installed
122124 if : ${{ matrix.container }}
@@ -170,13 +172,14 @@ jobs:
170172 needs :
171173 - plan
172174 - build-local-artifacts
173- runs-on : " ubuntu-20 .04"
175+ runs-on : " ubuntu-22 .04"
174176 env :
175177 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
176178 BUILD_MANIFEST_NAME : target/distrib/global-dist-manifest.json
177179 steps :
178180 - uses : actions/checkout@v4
179181 with :
182+ persist-credentials : false
180183 submodules : recursive
181184 - name : Install cached dist
182185 uses : actions/download-artifact@v4
@@ -216,16 +219,17 @@ jobs:
216219 - plan
217220 - build-local-artifacts
218221 - build-global-artifacts
219- # Only run if we're "publishing", and only if local and global didn't fail (skipped is fine)
220- 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') }}
222+ # Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine)
223+ 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') }}
221224 env :
222225 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
223- runs-on : " ubuntu-20 .04"
226+ runs-on : " ubuntu-22 .04"
224227 outputs :
225228 val : ${{ steps.host.outputs.manifest }}
226229 steps :
227230 - uses : actions/checkout@v4
228231 with :
232+ persist-credentials : false
229233 submodules : recursive
230234 - name : Install cached dist
231235 uses : actions/download-artifact@v4
@@ -284,10 +288,11 @@ jobs:
284288 # still allowing individual publish jobs to skip themselves (for prereleases).
285289 # "host" however must run to completion, no skipping allowed!
286290 if : ${{ always() && needs.host.result == 'success' }}
287- runs-on : " ubuntu-20 .04"
291+ runs-on : " ubuntu-22 .04"
288292 env :
289293 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
290294 steps :
291295 - uses : actions/checkout@v4
292296 with :
297+ persist-credentials : false
293298 submodules : recursive
0 commit comments