Skip to content

Windows build

Windows build #59

Workflow file for this run

name: Basix CI on Windows
on:
pull_request:
branches:
- main
push:
tags:
- "v*"
branches:
- "**"
merge_group:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build and test (Windows)
runs-on: windows-2022
env:
CMAKE_ARGS: -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON -DVCPKG_TARGET_TRIPLET=x64-windows
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- uses: actions/checkout@v4
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v6
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Basix (combined)
run: |
pip -v install .[ci]
- name: Run units tests
run: |
pip install pytest-xdist
pytest -n auto --durations 20 test/
- name: Run python demos
run: pytest demo/python/test.py
- name: Run C++ demos
run: pytest demo/cpp/test.py