Files
ortools-clone/.github/workflows/make_macos_python.yml
2022-02-23 10:59:05 +01:00

35 lines
972 B
YAML

name: Make MacOS Python
on: [push, pull_request]
jobs:
# Building using the github runner environement directly.
make:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install brew Make
run: |
brew install make
echo "/usr/local/opt/make/libexec/gnubin" >> $GITHUB_PATH
- name: Check make
run: make --version
- name: Swig install
run: brew install swig
- name: Check swig
run: swig -version
- name: Update Path
run: echo "$HOME/Library/Python/3.9/bin" >> $GITHUB_PATH
- name: Check system
run: make detect_port
- name: Check Python
run: make detect_python
- name: Build third party
run: make third_party BUILD_PYTHON=ON BUILD_JAVA=OFF BUILD_DOTNET=OFF
- name: Build C++ and Python
run: make compile_libraries -j4
- name: Test Python
run: make test_python -j4
- name: Create wheel package
run: make package_python