-
Notifications
You must be signed in to change notification settings - Fork 80
53 lines (47 loc) · 1.66 KB
/
Copy pathwindows.yml
File metadata and controls
53 lines (47 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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/