Add ability to build with Apple Clang #2056
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths-ignore: | |
- docs/** | |
- README.md | |
- README_PYPI.md | |
- cli/** | |
- examples/** | |
- images/** | |
- .gitignore | |
- COPYING | |
- build.* | |
- pull_datasets.sh | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- docs/** | |
- README.md | |
- README_PYPI.md | |
- cli/** | |
- examples/** | |
- images/** | |
- .gitignore | |
- COPYING | |
- build.* | |
- pull_datasets.sh | |
workflow_dispatch: | |
jobs: | |
test-python-bindings: | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
compiler: gcc | |
env: | |
CC: gcc-10 | |
CXX: g++-10 | |
- os: ubuntu-latest | |
complier: clang | |
env: | |
CC: clang-17 | |
CXX: clang++-17 | |
CXXFLAGS: "-stdlib=libc++" | |
LDFLAGS: "-lc++abi" | |
- os: macos-14 | |
compiler: llvm-clang | |
env: | |
CC: $(brew --prefix llvm@17)/bin/clang | |
CXX: $(brew --prefix llvm@17)/bin/clang++ | |
BOOST_ROOT: /usr/local | |
- os: macos-14 | |
compiler: apple-clang | |
# Apple Clang is default compiler. No env needed | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
uses: ./.github/composite-actions/install-dependencies | |
with: | |
# FIXME(senichenkov): This won't work without matrix in install-dependencies | |
install-build-tools: apt | |
install-toolset: gcc | |
install-boost: gcc | |
download-pybind: true | |
download-googletest: false | |
- name: Build pip package | |
shell: bash | |
run: | | |
python3 -m venv venv | |
source venv/bin/activate | |
python3 -m pip install . | |
- name: Test pip package | |
shell: bash | |
run: | | |
source venv/bin/activate | |
cp test_input_data/WDC_satellites.csv src/python_bindings/ | |
cp test_input_data/TestLong.csv src/python_bindings/ | |
cp test_input_data/TestWide.csv src/python_bindings/ | |
cp test_input_data/transactional_data/rules-kaggle-rows.csv src/python_bindings/ | |
cd src/python_bindings | |
python test_bindings.py | |
- name: Test data stats | |
working-directory: ${{github.workspace}} | |
shell: bash | |
run: | | |
source venv/bin/activate | |
cp test_input_data/TestDataStats.csv src/python_bindings | |
cd src/python_bindings | |
python test_pybind_data_stats.py |