mirror of https://github.com/astral-sh/uv
Use the Depot Ubuntu runners instead of GitHub for release workflows (#11948)
See - https://opensource.axo.dev/cargo-dist/book/reference/config.html#github-custom-runners - https://github.com/axodotdev/cargo-dist/issues/1760 - #11935
This commit is contained in:
parent
8f8c0e8918
commit
b7f98f1ff2
|
|
@ -50,7 +50,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
# Run 'dist plan' (or host) to determine what tasks we need to do
|
# Run 'dist plan' (or host) to determine what tasks we need to do
|
||||||
plan:
|
plan:
|
||||||
runs-on: "ubuntu-20.04"
|
runs-on: "depot-ubuntu-latest-4"
|
||||||
outputs:
|
outputs:
|
||||||
val: ${{ steps.plan.outputs.manifest }}
|
val: ${{ steps.plan.outputs.manifest }}
|
||||||
tag: ${{ (inputs.tag != 'dry-run' && inputs.tag) || '' }}
|
tag: ${{ (inputs.tag != 'dry-run' && inputs.tag) || '' }}
|
||||||
|
|
@ -118,7 +118,7 @@ jobs:
|
||||||
- plan
|
- plan
|
||||||
- custom-build-binaries
|
- custom-build-binaries
|
||||||
- custom-build-docker
|
- custom-build-docker
|
||||||
runs-on: "ubuntu-20.04"
|
runs-on: "depot-ubuntu-latest-4"
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
|
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
|
||||||
|
|
@ -169,7 +169,7 @@ jobs:
|
||||||
if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.custom-build-binaries.result == 'skipped' || needs.custom-build-binaries.result == 'success') && (needs.custom-build-docker.result == 'skipped' || needs.custom-build-docker.result == 'success') }}
|
if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.custom-build-binaries.result == 'skipped' || needs.custom-build-binaries.result == 'success') && (needs.custom-build-docker.result == 'skipped' || needs.custom-build-docker.result == 'success') }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
runs-on: "ubuntu-20.04"
|
runs-on: "depot-ubuntu-latest-4"
|
||||||
outputs:
|
outputs:
|
||||||
val: ${{ steps.host.outputs.manifest }}
|
val: ${{ steps.host.outputs.manifest }}
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -228,7 +228,7 @@ jobs:
|
||||||
# still allowing individual publish jobs to skip themselves (for prereleases).
|
# still allowing individual publish jobs to skip themselves (for prereleases).
|
||||||
# "host" however must run to completion, no skipping allowed!
|
# "host" however must run to completion, no skipping allowed!
|
||||||
if: ${{ always() && needs.host.result == 'success' && (needs.custom-publish-pypi.result == 'skipped' || needs.custom-publish-pypi.result == 'success') }}
|
if: ${{ always() && needs.host.result == 'success' && (needs.custom-publish-pypi.result == 'skipped' || needs.custom-publish-pypi.result == 'success') }}
|
||||||
runs-on: "ubuntu-20.04"
|
runs-on: "depot-ubuntu-latest-4"
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
|
|
@ -338,6 +338,9 @@ install-updater = false
|
||||||
# Path that installers should place binaries in
|
# Path that installers should place binaries in
|
||||||
install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"]
|
install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"]
|
||||||
|
|
||||||
|
[workspace.metadata.dist.github-custom-runners]
|
||||||
|
global = "depot-ubuntu-latest-4"
|
||||||
|
|
||||||
[workspace.metadata.dist.min-glibc-version]
|
[workspace.metadata.dist.min-glibc-version]
|
||||||
# Override glibc version for specific target triplets.
|
# Override glibc version for specific target triplets.
|
||||||
aarch64-unknown-linux-gnu = "2.28"
|
aarch64-unknown-linux-gnu = "2.28"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue