summaryrefslogtreecommitdiff
path: root/.github/workflows/pip-build-osx.yml
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-08-11 09:43:36 +0200
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-08-11 09:43:36 +0200
commit59e819dd9485bd55b2b3ec6440cb3e3200d96fcb (patch)
tree34e271029602b65c0b10177397a40f29053861c7 /.github/workflows/pip-build-osx.yml
parent3c4483635240bbef210001691a2cd13f871f3846 (diff)
Add build pip CI
Diffstat (limited to '.github/workflows/pip-build-osx.yml')
-rw-r--r--.github/workflows/pip-build-osx.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/pip-build-osx.yml b/.github/workflows/pip-build-osx.yml
new file mode 100644
index 00000000..4af7cd84
--- /dev/null
+++ b/.github/workflows/pip-build-osx.yml
@@ -0,0 +1,34 @@
+name: pip build osx
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: macos-latest
+ strategy:
+ max-parallel: 4
+ matrix:
+ python-version: ['3.5', '3.6', '3.7', '3.8']
+ name: Build wheels for Python ${{ matrix.python-version }}
+ steps:
+ - uses: actions/checkout@v1
+ with:
+ submodules: true
+ - uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+ architecture: x64
+ - name: Install dependencies
+ run: |
+ brew update || true
+ brew install boost eigen gmp mpfr cgal || true
+ python -m pip install --user -r .github/build-requirements.txt
+ python -m pip install --user twine delocate
+ - name: Build python wheel
+ run: |
+ python --version
+ mkdir build
+ cd build
+ cmake -DCMAKE_BUILD_TYPE=Release -DPython_ADDITIONAL_VERSIONS=3 ..
+ cd src/python
+ python setup.py bdist_wheel