-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 894 Bytes
/
UnitTestWindows.yml
File metadata and controls
34 lines (26 loc) · 894 Bytes
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
name: Unit-Test Windows
on:
workflow_dispatch:
jobs:
unit_test_windows:
runs-on: windows-latest
permissions: write-all
steps:
- name: Get repository code
uses: actions/checkout@v3
with:
submodules: true
- name: Download vcpkg
run: 'git clone https://github.com/Microsoft/vcpkg.git'
- name: Install vcpkg
run: '.\vcpkg\bootstrap-vcpkg.bat -disableMetrics'
- name: Install dependencies
run: '.\vcpkg\vcpkg install gtest'
- name: Integrate vcpkg
run: '.\vcpkg\vcpkg integrate install'
- name: Build project
run: |
cmake . -DCMAKE_TOOLCHAIN_FILE=D:/a/PrivateUnitTest/PrivateUnitTest/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build . --config Release
- name: Test project
run: ctest