Skip to content

Commit 19e5709

Browse files
committed
ensure AGENT_TOOLSDIRECTORY is persistent
1 parent a0f964d commit 19e5709

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build-wheel.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,18 @@ jobs:
4646
# Skip the cache on Windows nodes outside of our org.
4747
if: ${{ inputs.host-platform != 'win-64' }}
4848

49+
- name: Set up one env var
50+
run: |
51+
# we use self-hosted runners on which setup-python behaves weirdly...
52+
# see actions/setup-python#1087
53+
# this can influence both setup-python and cibuildtools
54+
echo "AGENT_TOOLSDIRECTORY=${{ runner.temp }}/SETUP_PYTHON" >> $GITHUB_ENV
55+
4956
- name: Set up Python
5057
id: setup-python
5158
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
5259
with:
5360
python-version: ${{ matrix.python-version }}
54-
env:
55-
# we use self-hosted runners on which setup-python behaves weirdly...
56-
# see actions/setup-python#1087
57-
AGENT_TOOLSDIRECTORY: "${{ runner.temp }}/SETUP_PYTHON"
5861

5962
- name: Set up MSVC
6063
if: ${{ startsWith(inputs.host-platform, 'win') }}

0 commit comments

Comments
 (0)