fix(ci): set RUNNER_TOOL_CACHE for setup-python action
Some checks failed
CI / build (push) Failing after 19s
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:
parent
e8d332e34f
commit
23e73312b4
@ -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'
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user