Skip to content

Commit 5bc092e

Browse files
Update copilot-setup-steps.yml
1 parent d608dac commit 5bc092e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,22 @@ jobs:
3636
run: |
3737
python -m pip install -r eng/ci_tools.txt
3838
39-
- name: Set VIRTUALENV_OVERRIDE_APP_DATA
39+
- name: Set persistent wheel cache path
4040
run: |
41-
mkdir -p ${{ runner.temp }}/_virtualenv
42-
echo "VIRTUALENV_OVERRIDE_APP_DATA=${{ runner.temp }}/_virtualenv" >> $GITHUB_ENV
41+
echo "VIRTUALENV_OVERRIDE_APP_DATA=${{ github.workspace }}/.venv_app_data" >> $GITHUB_ENV
42+
43+
- name: Cache virtualenv wheel data
44+
uses: actions/cache@v4
45+
with:
46+
path: .venv_app_data
47+
key: venv-app-data-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
48+
restore-keys: |
49+
venv-app-data-${{ runner.os }}-
4350
4451
- name: Populate the seed dir
4552
run: |
46-
virtualenv --download --reset-app-data \
53+
virtualenv --download \
4754
--pip=24.0 \
4855
--setuptools=75.3.2 \
4956
--wheel=0.45.1 \
50-
${{ runner.temp }}/_virtualenv
57+
${{ github.workspace }}/.venv_app_data

0 commit comments

Comments
 (0)