Skip to content

Commit 64243f7

Browse files
committed
* update 2
1 parent e754444 commit 64243f7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,21 @@ jobs:
3636
path: |
3737
~/.cache/cibuildwheel
3838
~/Library/Caches/cibuildwheel
39-
key: ${{ runner.os }}-${{ runner.arch }}-cibw-${{ hashFiles('.github/workflows/*.yml') }}
39+
key: ${{ runner.os }}-${{ runner.arch }}-cibw-v1
4040
restore-keys: |
4141
${{ runner.os }}-${{ runner.arch }}-cibw-
4242
43+
- name: Pre-download virtualenv.pyz on macOS
44+
if: runner.os == 'macOS'
45+
shell: bash
46+
run: |
47+
set -euxo pipefail
48+
mkdir -p ~/Library/Caches/cibuildwheel
49+
test -f ~/Library/Caches/cibuildwheel/virtualenv-20.27.1.pyz || \
50+
curl -fL --retry 8 --retry-delay 5 --retry-all-errors \
51+
"https://github.com/pypa/get-virtualenv/blob/20.27.1/public/virtualenv.pyz?raw=true" \
52+
-o ~/Library/Caches/cibuildwheel/virtualenv-20.27.1.pyz
53+
4354
- name: Build wheels
4455
uses: pypa/cibuildwheel@v2.22
4556
env:
@@ -49,7 +60,7 @@ jobs:
4960
CIBW_ARCHS_MACOS: x86_64 arm64
5061
CIBW_BEFORE_BUILD: ./build.sh
5162
CIBW_BUILD_VERBOSITY: 1
52-
CIBW_DEPENDENCY_VERSIONS: latest
63+
CIBW_DEPENDENCY_VERSIONS: "packages: virtualenv==20.27.1"
5364

5465
- uses: actions/upload-artifact@v4
5566
with:

0 commit comments

Comments
 (0)