Skip to content

CI: Try purging on macOS #54470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,12 @@ jobs:
with:
python-version: '3.11'

# Work around https://github.com/actions/cache/issues/403 by using GNU tar
# instead of BSD tar.
# borrowed from https://github.com/rust-lang/rust-analyzer/pull/6208/files
- name: Install GNU tar
# Work around for https://github.com/actions/runner-images/issues/2619?
# Empty disk and memory cache
- name: Purge on macOS
if: ${{ matrix.buildplat[1] == 'macosx_*' }}
run: |
brew install gnu-tar
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
sudo /usr/sbin/purge

# Python version used to build sdist doesn't matter
# wheel will be built from sdist with the correct version
Expand All @@ -145,6 +143,14 @@ jobs:
shell: bash -el {0}
run: echo "sdist_name=$(ls ./dist)" >> "$GITHUB_ENV"

# Work around for https://github.com/actions/runner-images/issues/2619?
# Empty disk and memory cache
# Again for good luck :)
- name: Purge on macOS again
if: ${{ matrix.buildplat[1] == 'macosx_*' }}
run: |
sudo /usr/sbin/purge

- name: Build wheels
uses: pypa/[email protected]
with:
Expand Down