From 5adac902241c70f53a7f162430d8ba2c41ca667d Mon Sep 17 00:00:00 2001 From: Chris Busillo Date: Sun, 24 May 2026 00:51:14 -0400 Subject: [PATCH] ci: remove release runner Python and sudo assumptions --- .github/workflows/release.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4cf1cbaf5791..a6b673a52b71 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,25 +74,19 @@ jobs: shell: bash run: | set -euo pipefail - sudo mkdir -p "$CARGO_TARGET_DIR" - sudo chown "$USER":"$USER" "$CARGO_TARGET_DIR" + mkdir -p "$CARGO_TARGET_DIR" - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup Python 3.12 - uses: actions/setup-python@v5 - with: - python-version: '3.12' - - name: Read Rust toolchain channel id: rust_toolchain shell: bash run: | set -euo pipefail - TOOLCHAIN=$(python -c "import sys, pathlib; p=pathlib.Path('code-rs/rust-toolchain.toml').read_text(); + TOOLCHAIN=$(python3 -c "import sys, pathlib; p=pathlib.Path('code-rs/rust-toolchain.toml').read_text(); try: import tomllib as tl except ModuleNotFoundError: @@ -257,17 +251,12 @@ jobs: with: fetch-depth: 0 - - name: Setup Python 3.12 - uses: actions/setup-python@v5 - with: - python-version: '3.12' - - name: Read Rust toolchain channel id: rust_toolchain shell: bash run: | set -euo pipefail - TOOLCHAIN=$(python -c "import sys, pathlib; p=pathlib.Path('code-rs/rust-toolchain.toml').read_text(); + TOOLCHAIN=$(python3 -c "import sys, pathlib; p=pathlib.Path('code-rs/rust-toolchain.toml').read_text(); try: import tomllib as tl except ModuleNotFoundError: