Skip to content

Commit f2a9960

Browse files
authored
Use the Depot Ubuntu runners instead of GitHub for release workflows (#16843)
## Summary This is same as astral-sh/uv#11948 and is to prep for the upcoming Ruff release.
1 parent fd341bb commit f2a9960

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ on:
5050
jobs:
5151
# Run 'dist plan' (or host) to determine what tasks we need to do
5252
plan:
53-
runs-on: "ubuntu-20.04"
53+
runs-on: "depot-ubuntu-latest-4"
5454
outputs:
5555
val: ${{ steps.plan.outputs.manifest }}
5656
tag: ${{ (inputs.tag != 'dry-run' && inputs.tag) || '' }}
@@ -116,7 +116,7 @@ jobs:
116116
- plan
117117
- custom-build-binaries
118118
- custom-build-docker
119-
runs-on: "ubuntu-20.04"
119+
runs-on: "depot-ubuntu-latest-4"
120120
env:
121121
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122122
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
@@ -167,7 +167,7 @@ jobs:
167167
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') }}
168168
env:
169169
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
170-
runs-on: "ubuntu-20.04"
170+
runs-on: "depot-ubuntu-latest-4"
171171
outputs:
172172
val: ${{ steps.host.outputs.manifest }}
173173
steps:
@@ -242,7 +242,7 @@ jobs:
242242
# still allowing individual publish jobs to skip themselves (for prereleases).
243243
# "host" however must run to completion, no skipping allowed!
244244
if: ${{ always() && needs.host.result == 'success' && (needs.custom-publish-pypi.result == 'skipped' || needs.custom-publish-pypi.result == 'success') && (needs.custom-publish-wasm.result == 'skipped' || needs.custom-publish-wasm.result == 'success') }}
245-
runs-on: "ubuntu-20.04"
245+
runs-on: "depot-ubuntu-latest-4"
246246
env:
247247
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
248248
steps:

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,3 +330,6 @@ install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"]
330330
# Temporarily allow changes to the `release` workflow, in which we pin actions
331331
# to a SHA instead of a tag (https://github.com/astral-sh/uv/issues/12253)
332332
allow-dirty = ["ci"]
333+
334+
[workspace.metadata.dist.github-custom-runners]
335+
global = "depot-ubuntu-latest-4"

0 commit comments

Comments
 (0)