From d2975400533339e678265cb000119633dc70478f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Mar 2026 22:46:25 -0700 Subject: [PATCH] Skip setup-python on macOS, use system Python instead setup-python's internal install script hardcodes /Users/runner which fails on self-hosted runners without sudo. macOS ships with Python 3 so we use it directly and skip the action entirely. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 6cba64c..55c5cd5 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -33,18 +33,23 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python + if: matrix.platform != 'macos' uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} - env: - AGENT_TOOLSDIRECTORY: ${{ runner.temp }}/toolcache + + - name: Verify Python (macOS) + if: matrix.platform == 'macos' + run: | + python3 --version + python3 -m pip --version - name: Install Python build tools - run: python -m pip install --upgrade pip setuptools wheel + run: python3 -m pip install --upgrade pip setuptools wheel - name: Build sidecar working-directory: python - run: python build_sidecar.py --cpu-only + run: python3 build_sidecar.py --cpu-only - name: Upload sidecar artifact uses: actions/upload-artifact@v3