-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Windows CI on GitHub Actions (#2286)
* Add GitHub Actions workflow for Windows CI * Add Windows CI status badge * Add vcpkg caching to GH Windows CI * Fix test binary path in Windows CI * Disable test step to populate cache * Revert "Disable test step to populate cache" This reverts commit 5b4fa49. * Try to reduce warning output on MSVC * drop: compile error on Windows * Revert "drop: compile error on Windows" This reverts commit e98c7af. * test failure * Revert "test failure" This reverts commit caca4ab.
- Loading branch information
1 parent
3d356a7
commit 60bdf49
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Windows CI" | ||
on: push | ||
jobs: | ||
build-test-windows: | ||
name: "Build and Test on Windows" | ||
runs-on: windows-2019 | ||
steps: | ||
- name: "Checkout Repository" | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: "Cache vcpkg binaries" | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~\AppData\Local\vcpkg\archives | ||
key: vcpkg-v1-${{ hashFiles('vcpkg.json') }} | ||
restore-keys: vcpkg-v1- | ||
- name: "Configure CMake" | ||
run: cmake -S . -B .\build -G "Visual Studio 16 2019" \ | ||
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" \ | ||
-DCMAKE_BUILD_TYPE=Debug | ||
-DTANGRAM_BUILD_TESTS=1 | ||
- name: "Run Build" | ||
run: cmake --build .\build | ||
- name: "Run Tests" | ||
run: .\tests\Debug\tests.out.exe | ||
working-directory: .\build |
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
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