Use upload-download artifacts #242
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: Windows Python | |
on: [push, pull_request] | |
jobs: | |
# Building using the github runner environement directly. | |
build: | |
runs-on: windows-2019 | |
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: Check swig | |
run: swig -version | |
- name: Check cmake | |
run: cmake --version | |
- name: Configure | |
run: cmake -S. -Bbuild -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON=ON -DBUILD_TESTING=ON -DPython3_ROOT_DIR=$env:pythonLocation -DPython_ROOT_DIR=$env:pythonLocation -DPython3_FIND_STRATEGY=LOCATION -DPython3_FIND_REGISTRY=LAST | |
- name: Build | |
run: cmake --build build --config Release --target ALL_BUILD -- /verbosity:normal /maxcpucount | |
- name: Run python tests | |
run: | | |
cd build | |
ctest -C Release --verbose |