Skip to content

Linux builds now too (Intel only for now). #4

Linux builds now too (Intel only for now).

Linux builds now too (Intel only for now). #4

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:
- linux-wheels
- macos-intel-wheels
jobs:
linux-intel:
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/linux-wheels'
steps:
- uses: actions/checkout@v3
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: "x86_64"
CIBW_BEFORE_BUILD: "python -m pip install cmake nox numpy; nox --session libbezier-release --reuse-existing-virtualenvs"
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-*"
CIBW_ENVIRONMENT: 'BEZIER_INSTALL_PREFIX=/project/.nox/.cache/libbezier-release/usr LD_LIBRARY_PATH=/project/.nox/.cache/libbezier-release/usr/lib'
CIBW_SKIP: "*musllinux*"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
macos-intel:
runs-on: macos-13
if: github.ref == 'refs/heads/macos-intel-wheels'
steps:
- 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/[email protected]
env:
CIBW_BEFORE_BUILD: "python -m pip install numpy"
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-*"
CIBW_SKIP: "*pypy*"
BEZIER_INSTALL_PREFIX: "./.nox/.cache/libbezier-release/usr"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl