Skip to content

Be sure not to target native arch. #2

Be sure not to target native arch.

Be sure not to target native arch. #2

Workflow file for this run

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
name: Building Wheels
on:
push:
branches:
- macos-intel-wheels
jobs:
macos-intel:
runs-on: macos-13
if: github.ref == 'refs/heads/macos-intel-wheels'
steps:
- uses: actions/cache@v3
with:
path: ~/Library/Caches/pip
key: macos-intel-pip
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install `gcc`
run: |
brew install gcc
brew unlink gcc
brew link gcc
- name: Build `libbezier`
env:
TARGET_NATIVE_ARCH: "off"
run: |
python3.11 -m pip install cmake nox
nox --session libbezier-release --reuse-existing-virtualenvs
- name: Build wheels
uses: pypa/cibuildwheel@v2.14.1
env:
CIBW_BUILD: "cp38-*x86* cp39-*x86* cp310-*x86* cp311-*x86*"
CIBW_BEFORE_BUILD: "pip install numpy"
BEZIER_INSTALL_PREFIX: "./.nox/.cache/libbezier-release/usr"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl