From 56bf5a7fa438c178721ca5b45f7177cca77bae0e Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Wed, 19 Mar 2025 17:46:32 +0530 Subject: [PATCH 1/2] Allow dirty files in `cargo-dist` for action pins --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 27152d3f3912b3..b2ad6559a8f669 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -327,3 +327,6 @@ github-custom-job-permissions = { "build-docker" = { packages = "write", content install-updater = false # Path that installers should place binaries in install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"] +# Temporarily allow changes to the `release` workflow, in which we pin actions +# to a SHA instead of a tag (https://github.com/astral-sh/uv/issues/12253) +allow-dirty = ["ci"] From 3fdd8f4b7d3b4ea59d765094891c8b13f89f0b64 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Wed, 19 Mar 2025 17:46:43 +0530 Subject: [PATCH 2/2] Use the Depot Ubuntu runners instead of GitHub for release workflows --- .github/workflows/release.yml | 8 ++++---- Cargo.toml | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5cdfaf169d6745..7f3599b4f0a270 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ on: jobs: # Run 'dist plan' (or host) to determine what tasks we need to do plan: - runs-on: "ubuntu-20.04" + runs-on: "depot-ubuntu-latest-4" outputs: val: ${{ steps.plan.outputs.manifest }} tag: ${{ (inputs.tag != 'dry-run' && inputs.tag) || '' }} @@ -116,7 +116,7 @@ jobs: - plan - custom-build-binaries - custom-build-docker - runs-on: "ubuntu-20.04" + runs-on: "depot-ubuntu-latest-4" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json @@ -167,7 +167,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') }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - runs-on: "ubuntu-20.04" + runs-on: "depot-ubuntu-latest-4" outputs: val: ${{ steps.host.outputs.manifest }} steps: @@ -242,7 +242,7 @@ jobs: # still allowing individual publish jobs to skip themselves (for prereleases). # "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') && (needs.custom-publish-wasm.result == 'skipped' || needs.custom-publish-wasm.result == 'success') }} - runs-on: "ubuntu-20.04" + runs-on: "depot-ubuntu-latest-4" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: diff --git a/Cargo.toml b/Cargo.toml index b2ad6559a8f669..0efc208c99d69c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -330,3 +330,6 @@ install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"] # Temporarily allow changes to the `release` workflow, in which we pin actions # to a SHA instead of a tag (https://github.com/astral-sh/uv/issues/12253) allow-dirty = ["ci"] + +[workspace.metadata.dist.github-custom-runners] +global = "depot-ubuntu-latest-4"