Rebase on LLVM 16 #379
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: Tests OSX | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install system dependencies | |
run: | | |
brew install cmake ninja | |
sudo $CONDA/bin/conda install -c conda-forge llvmdev==16.0.0 clangdev==16.0.0 | |
python -m pip install --upgrade pip | |
python -m pip install lit purectypes==0.2 six psutil | |
mkdir build | |
- name: CMake | |
working-directory: build | |
run: | | |
cmake \ | |
-DBUILD_SHARED_LIBS=ON \ | |
-DPYTHON_BINDINGS=ON \ | |
-DBUILD_TESTS=ON \ | |
-DLLVM_CONFIG=$CONDA/bin/llvm-config -DCMAKE_BUILD_TYPE=debug \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-G Ninja .. | |
- name: Build | |
working-directory: build | |
run: | | |
ninja | |
- name: Tests Python | |
working-directory: build | |
run: | | |
ninja check_python | |
- name: Tests native | |
working-directory: build | |
run: | | |
ninja check_lib |