fix(ci): set RUNNER_TOOL_CACHE for setup-python action
Some checks failed
CI / build (push) Failing after 19s

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.
This commit is contained in:
cottongin 2026-01-28 05:17:54 -05:00
parent e8d332e34f
commit 23e73312b4
No known key found for this signature in database
GPG Key ID: 0ECC91FE4655C262
2 changed files with 12 additions and 0 deletions

View File

@ -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'

View File

@ -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'