Skip to content

Commit ca3bd84

Browse files
committed
Remove the actions/setup-python action for self-hosted Linux runners (since
the action only really supports GitHub runners). Document this requirement in PROVISIONING.md.
1 parent 0dee4d0 commit ca3bd84

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Diff for: PROVISIONING.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ sudo apt install python3 build-essential ccache gdb lcov pkg-config \
1919
lzma lzma-dev tk-dev uuid-dev zlib1g-dev linux-perf
2020
```
2121

22+
The self-hosted runner needs to have `python` be Python 3.9 or later.
23+
2224
### Enable ccache
2325

2426
```bash session

Diff for: bench_runner/templates/_benchmark.src.yml

-7
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,6 @@ jobs:
161161
run: |
162162
git gc
163163
- uses: fregante/setup-git-user@v2
164-
- name: Setup system Python
165-
if: ${{ runner.arch == 'X64' }}
166-
uses: actions/setup-python@v5
167-
with:
168-
python-version: "3.11"
169164
- name: Checkout CPython
170165
uses: actions/checkout@v4
171166
with:
@@ -324,8 +319,6 @@ jobs:
324319
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=full' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }} ${{ inputs.clang == true && '--with-tail-call-interp' || '' }}
325320
make -j4
326321
./python.exe -VV
327-
# On macos ARM64, actions/setup-python isn't available, so we rely on a
328-
# pre-installed homebrew one, used through a venv
329322
- name: Install pyperformance
330323
if: ${{ steps.should_run.outputs.should_run != 'false' }}
331324
run: |

0 commit comments

Comments
 (0)