-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (58 loc) · 2.39 KB
/
tools.yml
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
name: CI
# Only run manually
on:
push:
workflow_dispatch:
jobs:
build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
with:
path: patches
- uses: actions/checkout@v2
with:
repository: 'chromium/gyp'
ref: 'e87d37d6bce611abed35e854d5ae1a401e9ce04c'
path: gyp
- uses: actions/checkout@v2
with:
repository: 'google/breakpad'
# This should match our external dependency version in TemplePlus
ref: 'b324760c7f53667af128a6b77b790323da04fcb9'
path: breakpad
- name: Apply VS2019 Patch
run: git apply ../patches/0001-VS2019-compatibility.patch
working-directory: ./breakpad
# rebuild the binaries to make use of the DIA SDK included in our version of visual studio
- name: Build
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
call gyp\gyp breakpad\src\tools\windows\tools_windows.gyp
msbuild breakpad\src\tools\windows\symupload\symupload.vcxproj /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v142
msbuild breakpad\src\tools\windows\dump_syms\dump_syms.vcxproj /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v142
msbuild breakpad\src\tools\windows\converter_exe\converter_exe.vcxproj /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v142
# Need to use cmd because of the vcvars32 batch file
shell: cmd
env:
BUILD_NUMBER: ${GITHUB_RUN_NUMBER}
GYP_MSVS_VERSION: 2017
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: tools
path: |
breakpad/src/tools/windows/dump_syms/Release/dump_syms.exe
breakpad/src/tools/windows/converter_exe/Release/converter_exe.exe
breakpad/src/tools/windows/symupload/Release/symupload.exe
retention-days: 1
- name: Publish Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
breakpad/src/tools/windows/dump_syms/Release/dump_syms.exe
breakpad/src/tools/windows/converter_exe/Release/converter_exe.exe
breakpad/src/tools/windows/symupload/Release/symupload.exe