Merge pull request #891 from index1207/impl_first_card #542
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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-windows: | |
strategy: | |
matrix: | |
include: | |
# Windows Server 2022 + Visual Studio 2022 | |
- name: "Windows Server 2022 + Visual Studio 2022" | |
os: windows-2022 | |
# Windows Server 2019 + Visual Studio 2019 | |
- name: "Windows Server 2019 + Visual Studio 2019" | |
os: windows-2019 | |
runs-on: ${{ matrix.os }} | |
name: 🪟 Build - ${{ matrix.name }} | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: true | |
- 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@v1.0.2 | |
- name: Build | |
run: cd build && MSBuild.exe RosettaStone.sln /p:Configuration=Release | |
- name: Run Unit Test | |
run: /a/RosettaStone/RosettaStone/build/bin/Release/UnitTests.exe | |
- name: Run Python Test | |
run: | | |
pip install -r requirements.txt --break-system-packages | |
pip install . --break-system-packages | |
python -m pytest Tests/PythonTests/ |