File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff 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 :
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 :
You can’t perform that action at this time.
0 commit comments