From 23e73312b42fe233e1f203897815fa509542b1d9 Mon Sep 17 00:00:00 2001 From: cottongin Date: Wed, 28 Jan 2026 05:17:54 -0500 Subject: [PATCH] fix(ci): set RUNNER_TOOL_CACHE for setup-python action The setup-python action defaults to /Users/runner which doesn't exist on self-hosted runners. Set RUNNER_TOOL_CACHE to a writable temp path. --- .gitea/workflows/ci.yml | 6 ++++++ .gitea/workflows/release.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a5f702d..5ada577 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,6 +4,9 @@ name: CI branches: [master, crosspoint-ef] pull_request: +env: + RUNNER_TOOL_CACHE: ${{ runner.temp }}/tool_cache + jobs: build: runs-on: ubuntu-latest @@ -12,6 +15,9 @@ jobs: with: submodules: recursive + - name: Set up Python tool cache directory + run: mkdir -p "$RUNNER_TOOL_CACHE" + - uses: actions/setup-python@v5 with: python-version: '3.12' diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 5511075..ac9b7c5 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -4,6 +4,9 @@ on: tags: - '*' +env: + RUNNER_TOOL_CACHE: ${{ runner.temp }}/tool_cache + jobs: build-release: runs-on: ubuntu-latest @@ -19,6 +22,9 @@ jobs: ~/.platformio/.cache key: ${{ runner.os }}-pio + - name: Set up Python tool cache directory + run: mkdir -p "$RUNNER_TOOL_CACHE" + - uses: actions/setup-python@v5 with: python-version: '3.12'