-
Notifications
You must be signed in to change notification settings - Fork 7
107 lines (88 loc) · 2.91 KB
/
win_x64_cmake_msvc_dbg.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Windows x64 CMake/MSVC (Debug)
permissions: read-all
on:
# This is a required workflow specified in branch enforcement
# and must run unconditionally to allow merges.
push:
pull_request:
jobs:
win_msvc_dbg_x64_cmake:
runs-on: windows-2019
steps:
- name: Git config
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Install vcpkg
shell: cmd
run: |
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: actions/checkout@v2
with:
path: test
fetch-depth: 0
- name: Generate shared library for main branch (with patch)
shell: cmd
run: |
cd test
cmake . -Ax64 -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DCMAKE_TOOLCHAIN_FILE=..\vcpkg\scripts\buildsystems\vcpkg.cmake
- name: Build shared library for main branch (with patch)
shell: cmd
run: |
cd test
cmake --build . --config Debug
- name: Generate D3D12 example app for main branch (with patch)
shell: cmd
run: |
mkdir test_examples
cd test_examples
cmake ..\test\examples\D3D12ProjectTemplate -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=..\vcpkg\scripts\buildsystems\vcpkg.cmake
- name: Build D3D12 example app for main branch (with patch)
shell: cmd
run: |
cd test_examples
cmake --build . --config Debug
- name: Generate project for main branch (with patch)
shell: cmd
run: |
cd test
cmake . -Ax64 -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -DGPGMM_DISABLE_SIZE_CACHE=ON -DCMAKE_TOOLCHAIN_FILE=..\vcpkg\scripts\buildsystems\vcpkg.cmake
- name: Build for main branch (with patch)
shell: cmd
run: |
cd test
cmake --build . --config Debug
- name: Run gpgmm_end2end_tests (with patch)
timeout-minutes: 10
shell: cmd
run: |
cd test
bin\Debug\gpgmm_end2end_tests.exe --gtest_filter=-*NoLeak --check-device-leaks 2>&1
- name: Run gpgmm_end2end_tests runtime leak checks (with patch)
timeout-minutes: 10
shell: cmd
run: |
cd test
bin\Debug\gpgmm_end2end_tests.exe --no-leaks 2>&1
- name: Run gpgmm_end2end_tests no leak tests (with patch)
timeout-minutes: 10
shell: cmd
run: |
cd test
bin\Debug\gpgmm_end2end_tests.exe --gtest_filter=*NoLeak --check-device-leaks 2>&1
- name: Run gpgmm_unittests (with patch)
shell: cmd
run: |
cd test
bin\Debug\gpgmm_unittests.exe
- name: Run gpgmm_capture_replay_tests (with patch)
shell: cmd
run: |
cd test
bin\Debug\gpgmm_capture_replay_tests.exe --log-level=DEBUG --check-device-leaks 2>&1