Skip to content

Commit

Permalink
ci(wheels): Use podman instead of Docker for MacOS ARM64 Linux cross
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Lewis <[email protected]>
  • Loading branch information
zachlewis committed Sep 18, 2024
1 parent 2a5e713 commit 59787c2
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,7 @@ jobs:
name: Install Python
with:
python-version: '3.8'

- name: Install Docker
run: |
brew install --cask docker
open /Applications/Docker.app
while ! docker system info; do sleep 1; done
env:
HOMEBREW_NO_AUTO_UPDATE: 1


- name: Build wheels
uses: pypa/[email protected]
env:
Expand Down Expand Up @@ -304,12 +296,23 @@ jobs:
name: Install Python
with:
python-version: '3.8'

- name: Install Podman
run: |
brew install podman qemu
brew install lima
podman machine init
podman machine start
- name: Verify Podman Installation
run: podman --version

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python }}
CIBW_PLATFORM: linux
CIBW_CONTAINER_ENGINE: podman
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux }}

Expand Down

0 comments on commit 59787c2

Please sign in to comment.