Skip to content

Implement new card type 'Locations' #610

Implement new card type 'Locations'

Implement new card type 'Locations' #610

Workflow file for this run

name: Windows
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
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: RosettaStone.slnx
# Windows Server 2022 + Visual Studio 2022
- name: "Windows Server 2022 + Visual Studio 2022"
os: windows-2022
solution: RosettaStone.sln
runs-on: ${{ matrix.os }}
name: 🪟 Build - ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- 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 -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" ..
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2
- name: Build
run: cd build && MSBuild.exe ${{ matrix.solution }} /p:Configuration=Release
- name: Run Unit Test
run: /a/RosettaStone/RosettaStone/build/bin/Release/UnitTests.exe
- name: Run Python Test
run: |
python -m pip install --upgrade pip==26.1.2
python -m pip install -r requirements.txt
python -m pip install --no-build-isolation --no-deps .
python -m pytest Tests/PythonTests/