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 a9488c6
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 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,25 @@ jobs:
name: Install Python
with:
python-version: '3.8'

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

- name: Build an Image with Podman
run: podman build -t my-app .

- 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 a9488c6

Please sign in to comment.