Skip to content

Commit

Permalink
install colima docker on mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
alik-git committed Dec 20, 2024
1 parent d449c86 commit a32fae1
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ concurrency:
cancel-in-progress: true

jobs:
build-wheels-linux:
runs-on: ubuntu-latest
name: Build and publish Python package (Linux)
build-wheels:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
name: Build and publish Python package (${{ matrix.os }})
timeout-minutes: 15
runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -32,6 +36,13 @@ jobs:
with:
toolchain: stable

- name: Install Docker on macOS
if: runner.os == 'macOS'
run: |
brew install docker colima
colima start
docker info
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -51,6 +62,8 @@ jobs:
unzip protoc.zip -d protoc
mv protoc/bin/protoc /usr/local/bin/protoc
mv protoc/include/google /usr/local/include/google
CIBW_BEFORE_ALL_MACOS: |
brew install protobuf
CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x
CIBW_QEMU: "true"
CIBW_BEFORE_BUILD: |
Expand All @@ -66,14 +79,15 @@ jobs:
- name: Upload wheel artifacts
uses: actions/upload-artifact@v3
with:
name: wheels-linux
name: wheels-${{ matrix.os }}
path: |
dist/*.whl
build-source-dist:
name: Build and publish Python package (source distribution)
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -106,11 +120,13 @@ jobs:
dist/*.tar.gz
publish-wheels:
needs: [build-wheels-linux, build-source-dist]
runs-on: ubuntu-latest
needs: [build-wheels, build-source-dist]
name: Publish Python wheels
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- name: Download all wheels and source dist
- name: Download all wheels
uses: actions/download-artifact@v3
with:
path: dist
Expand All @@ -130,6 +146,7 @@ jobs:
name: Build and publish Rust package
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down

0 comments on commit a32fae1

Please sign in to comment.