Rebase on LLVM 16 #362
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 Windows | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
build: | ||
runs-on: windows-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: | | ||
choco install ninja | ||
C:\Miniconda\condabin\conda.bat activate base | ||
C:\Miniconda\condabin\conda.bat update -c conda-forge python | ||
C:\Miniconda\condabin\conda.bat 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 | ||
mkdir build | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
vsversion: "2022" | ||
- name: CMake + build | ||
working-directory: build | ||
run: | | ||
cmake -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe -DPYTHON_BINDINGS=ON -DBUILD_TESTS=ON -DLLVM_CONFIG=C:/Miniconda/Library/bin/llvm-config.exe -DCMAKE_BUILD_TYPE=release -DCMAKE_PREFIX_PATH="C:/Miniconda/Library/lib/" -G Ninja .. | ||
ninja | ||
- name: Native & Python tests | ||
working-directory: build | ||
run: | | ||
$env:Path = "C:/Miniconda/Library/bin/;$env:Path" | ||
copy C:\Miniconda\Library\bin\zlib.dll bindings\python\zlib.dll | ||
ninja check |