Support and build wheels for new python versions #394
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.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v3.1.1 | |
- name: Install system dependencies | |
run: | | |
choco install --accept-license ninja | |
conda activate base | |
conda update -c conda-forge python | |
conda install -c conda-forge llvmdev==13.0.0 clangdev==13.0.0 | |
python -m pip install --upgrade pip | |
python -m pip install lit purectypes==0.2 six setuptools | |
mkdir build | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- 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 |