-
Notifications
You must be signed in to change notification settings - Fork 7
184 lines (154 loc) · 5.68 KB
/
win_x86_gn_clang_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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
name: Windows x86 GN/Clang (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_clang_dbg_x86:
runs-on: windows-2019
steps:
- name: Git config
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Install depot_tools
shell: cmd
run: |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git ..\depot_tools
set "PATH=%CD%\..\depot_tools;%PATH%"
gclient
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: actions/checkout@v2
with:
ref: main
path: base
fetch-depth: 0
- name: Sync code for main branch
shell: cmd
run: |
set "PATH=%CD%\..\depot_tools;%PATH%"
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0"
cd base
copy scripts\standalone.gclient .gclient
gclient sync
- name: Generate project for main branch
shell: cmd
run: |
set "PATH=%CD%\..\depot_tools;%PATH%"
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0"
cd base
gn gen out\Debug --args="target_cpu=\"x86\" is_debug=true gpgmm_disable_size_cache=true"
- name: Build for main branch
shell: cmd
run: |
set "PATH=%CD%\..\depot_tools;%PATH%"
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0"
cd base
ninja -C out\Debug
- name: Run gpgmm_end2end_tests
shell: cmd
run: |
cd base
out\Debug\gpgmm_end2end_tests.exe --gtest_filter=-*NoLeak --gtest_output=json:${{ github.workspace }}\..\baseline_end2end_tests.json
- name: Run gpgmm_unittests
shell: cmd
run: |
cd base
out\Debug\gpgmm_unittests.exe --gtest_output=json:${{ github.workspace }}\..\baseline_unittests.json
# - name: Run gpgmm_capture_replay_tests
# shell: cmd
# run: |
# cd base
# out\Debug\gpgmm_capture_replay_tests.exe --gtest_output=json:${{ github.workspace }}\..\baseline_capture_replay_tests.json
- uses: actions/checkout@v2
with:
path: test
fetch-depth: 0
- name: Sync code for main branch (with patch)
shell: cmd
run: |
set "PATH=%CD%\..\depot_tools;%PATH%"
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0"
cd test
copy scripts\standalone.gclient .gclient
gclient sync
- name: Generate shared library for main branch (with patch)
shell: cmd
run: |
set "PATH=%CD%\..\depot_tools;%PATH%"
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0"
cd test
gn gen out\Debug --args="target_cpu=\"x86\" is_debug=true gpgmm_shared_library=true"
- name: Build shared library for main branch (with patch)
shell: cmd
run: |
set "PATH=%CD%\..\depot_tools;%PATH%"
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0"
cd test
ninja -C out\Debug gpgmm
- name: Generate project for main branch (with patch)
shell: cmd
run: |
set "PATH=%CD%\..\depot_tools;%PATH%"
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0"
cd test
gn gen out\Debug --args="target_cpu=\"x86\" is_debug=true gpgmm_disable_size_cache=true"
- name: Build for main branch (with patch)
shell: cmd
run: |
set "PATH=%CD%\..\depot_tools;%PATH%"
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0"
cd test
ninja -C out\Debug
- name: Run gpgmm_end2end_tests (with patch)
timeout-minutes: 10
shell: cmd
run: |
cd test
out\Debug\gpgmm_end2end_tests.exe --gtest_filter=-*NoLeak --gtest_output=json:${{ github.workspace }}\..\test_end2end_tests.json
- name: Run gpgmm_end2end_tests runtime leak checks (with patch)
timeout-minutes: 10
shell: cmd
run: |
cd test
out\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
out\Debug\gpgmm_end2end_tests.exe --gtest_filter=*NoLeak --check-device-leaks 2>&1
- name: Run gpgmm_unittests (with patch)
shell: cmd
run: |
cd test
out\Debug\gpgmm_unittests.exe --gtest_output=json:${{ github.workspace }}\..\test_unittests.json
# - name: Run gpgmm_capture_replay_tests (with patch)
# shell: cmd
# run: |
# cd test
# out\Debug\gpgmm_capture_replay_tests.exe --log-level=DEBUG --gtest_output=json:${{ github.workspace }}\..\test_capture_replay_tests.json
- name: Run gpgmm_capture_replay_tests to generate capture (with patch)
shell: cmd
run: |
cd test
out\Debug\gpgmm_capture_replay_tests.exe --log-level=DEBUG --gtest_filter=*Replay/* --event-mask=0x3 --ignore-caps-mismatch --disable-memory-playback
- name: Run gpgmm_capture_replay_tests to playback capture (with patch)
shell: cmd
run: |
cd test
out\Debug\gpgmm_capture_replay_tests.exe --gtest_filter=*Replay/*
- name: Regression check end2end tests
run: |
python test\scripts\regression_check.py ${{ github.workspace }}\..\baseline_end2end_tests.json ${{ github.workspace }}\..\test_end2end_tests.json
- name: Regression check unittests
run: |
python test\scripts\regression_check.py ${{ github.workspace }}\..\baseline_unittests.json ${{ github.workspace }}\..\test_unittests.json
# - name: Regression check capture replay tests
# run: |
# python test\scripts\regression_check.py ${{ github.workspace }}\..\baseline_capture_replay_tests.json ${{ github.workspace }}\..\test_capture_replay_tests.json