Skip to content

Restore GitHub Actions workflow #122

Restore GitHub Actions workflow

Restore GitHub Actions workflow #122

Workflow file for this run

name: Windows
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
PYTHON_VERSION: '3.12'
jobs:
build-windows:
strategy:
matrix:
include:
# Windows Server 2025 + Visual Studio 2026
- name: "Windows Server 2025 + Visual Studio 2026"
os: windows-2025-vs2026
solution: CubbyFlow.slnx
# Windows Server 2022 + Visual Studio 2022
- name: "Windows Server 2022 + Visual Studio 2022"
os: windows-2022
solution: CubbyFlow.sln
runs-on: ${{ matrix.os }}
name: 🪟 Build - ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Configure Build
run: mkdir build && cd build && cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE=Release ..
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
run: cd build && MSBuild.exe ${{ matrix.solution }} /p:Configuration=Release
- name: Run Unit Test
run: /a/CubbyFlow/CubbyFlow/build/bin/Release/UnitTests.exe
- name: Run Python Test
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install .
python -m pytest Tests/PythonTests/