Skip to content

Commit cf741a4

Browse files
authored
CI: Try purging on macOS (#54470)
Update wheels.yml
1 parent 3efebd4 commit cf741a4

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/wheels.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,12 @@ jobs:
123123
with:
124124
python-version: '3.11'
125125

126-
# Work around https://github.com/actions/cache/issues/403 by using GNU tar
127-
# instead of BSD tar.
128-
# borrowed from https://github.com/rust-lang/rust-analyzer/pull/6208/files
129-
- name: Install GNU tar
126+
# Work around for https://github.com/actions/runner-images/issues/2619?
127+
# Empty disk and memory cache
128+
- name: Purge on macOS
130129
if: ${{ matrix.buildplat[1] == 'macosx_*' }}
131130
run: |
132-
brew install gnu-tar
133-
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
131+
sudo /usr/sbin/purge
134132
135133
# Python version used to build sdist doesn't matter
136134
# wheel will be built from sdist with the correct version
@@ -145,6 +143,14 @@ jobs:
145143
shell: bash -el {0}
146144
run: echo "sdist_name=$(ls ./dist)" >> "$GITHUB_ENV"
147145

146+
# Work around for https://github.com/actions/runner-images/issues/2619?
147+
# Empty disk and memory cache
148+
# Again for good luck :)
149+
- name: Purge on macOS again
150+
if: ${{ matrix.buildplat[1] == 'macosx_*' }}
151+
run: |
152+
sudo /usr/sbin/purge
153+
148154
- name: Build wheels
149155
uses: pypa/[email protected]
150156
with:

0 commit comments

Comments
 (0)