Skip to content

Commit

Permalink
fixup: Added seperate runner for macos-14 which is arm64 only
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidmt committed May 1, 2024
1 parent e1ab209 commit 5aae9c6
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion .github/workflows/python-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ jobs:
path: dist

macos:
runs-on: macos-latest
runs-on: macos-13
needs: ["lint-python", "lint-rust"]
strategy:
matrix:
Expand Down Expand Up @@ -221,6 +221,52 @@ jobs:
name: wheels-macos-${{ matrix.target }}
path: dist

macos_arm:
runs-on: macos-latest
needs: ["lint-python", "lint-rust"]
strategy:
matrix:
target: [arm64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: |
3.8
3.9
3.10
3.11
3.12
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
maturin-version: 1.5.1
target: ${{ matrix.target }}
args: --release --out dist -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --manifest-path pylace/Cargo.toml

- name: Install dev dependencies
run: |
pip install --upgrade pip
pip install -r pylace/requirements-dev.txt
- name: Install pylace
if: ${{ matrix.target != 'aarch64' }}
run: |
python -sS -c "import platform; print(platform.mac_ver())"
ls -l ./dist
WHEEL_FILE=$(python3 .github/scripts/find_compatible_wheel.py pylace ./dist)
echo "Installing $WHEEL_FILE"
pip install $WHEEL_FILE
- name: Run Tests
run: pytest pylace/tests

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.target }}
path: dist

merge:
runs-on: ubuntu-latest
needs: [ macos, windows, linux ]
Expand Down

0 comments on commit 5aae9c6

Please sign in to comment.