-
Notifications
You must be signed in to change notification settings - Fork 83
215 lines (177 loc) · 8.42 KB
/
ci-windows.yml
File metadata and controls
215 lines (177 loc) · 8.42 KB
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
name: Build for Windows
on:
push:
pull_request:
release:
types: # This configuration does not affect the page_build event above
- created
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: robinraju/release-downloader@v1.5
with:
repository: ${{ secrets.SDK_REPO }}
latest: true
filename: "IDA_SDKs.zip"
token: ${{ secrets.SDK_REPO_ACCESS_TOKEN }}
- name: Unzip IDA_SDKs.zip
run: |
7z.exe x IDA_SDKs.zip -oIDA_SDKs
cd IDA_SDKs
7z.exe x *.zip
- name: Install Triton
run: |
"`r`nset(VCPKG_BUILD_TYPE release)" | Add-Content "$env:VCPKG_INSTALLATION_ROOT\triplets\x64-windows-static.cmake"
vcpkg install triton --triplet x64-windows-static
- name: Build Ponce IDA 7.0
run: |
cmake -S . -B build_x64_7.0 -DIDASDK_ROOT_DIR=".\IDA_SDKs\idasdk70" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build_x64_7.0 --config Release --parallel 2
- name: Build Ponce IDA 7.1
run: |
cmake -S . -B build_x64_7.1 -DIDASDK_ROOT_DIR=".\IDA_SDKs\idasdk71" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build_x64_7.1 --config Release --parallel 2
- name: Build Ponce IDA 7.2
run: |
cmake -S . -B build_x64_7.2 -DIDASDK_ROOT_DIR=".\IDA_SDKs\idasdk72" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build_x64_7.2 --config Release --parallel 2
- name: Build Ponce IDA 7.3
run: |
cmake -S . -B build_x64_7.3 -DIDASDK_ROOT_DIR=".\IDA_SDKs\idasdk73" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build_x64_7.3 --config Release --parallel 2
- name: Build Ponce IDA 7.4
run: |
cmake -S . -B build_x64_7.4 -DIDASDK_ROOT_DIR=".\IDA_SDKs\idasdk74" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build_x64_7.4 --config Release --parallel 2
- name: Build Ponce IDA 7.5
run: |
cmake -S . -B build_x64_7.5 -DIDASDK_ROOT_DIR=".\IDA_SDKs\idasdk75" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build_x64_7.5 --config Release --parallel 2
- name: Build Ponce IDA 7.6
run: |
cmake -S . -B build_x64_7.6 -DIDASDK_ROOT_DIR=".\IDA_SDKs\idasdk76" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build_x64_7.6 --config Release --parallel 2
- name: Build Ponce IDA 7.7
run: |
cmake -S . -B build_x64_7.7 -DIDASDK_ROOT_DIR=".\IDA_SDKs\idasdk77" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build_x64_7.7 --config Release --parallel 2
- name: Build Ponce IDA 8.0
run: |
cmake -S . -B build_x64_8.0 -DIDASDK_ROOT_DIR=".\IDA_SDKs\idasdk_pro80" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build_x64_8.0 --config Release --parallel 2
- name: Build Ponce IDA 8.1
run: |
cmake -S . -B build_x64_8.1 -DIDASDK_ROOT_DIR=".\IDA_SDKs\idasdk_pro81" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build_x64_8.1 --config Release --parallel 2
- uses: actions/upload-artifact@master
with:
name: Ponce_ida70
path: build_x64_7.0/Release/Ponce64.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida70
path: build_x64_7.0/Release/Ponce.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida71
path: build_x64_7.1/Release/Ponce64.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida71
path: build_x64_7.1/Release/Ponce.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida72
path: build_x64_7.2/Release/Ponce64.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida72
path: build_x64_7.2/Release/Ponce.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida73
path: build_x64_7.3/Release/Ponce64.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida73
path: build_x64_7.3/Release/Ponce.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida74
path: build_x64_7.4/Release/Ponce64.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida74
path: build_x64_7.4/Release/Ponce.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida75
path: build_x64_7.5/Release/Ponce64.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida75
path: build_x64_7.5/Release/Ponce.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida76
path: build_x64_7.6/Release/Ponce64.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida76
path: build_x64_7.6/Release/Ponce.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida77
path: build_x64_7.7/Release/Ponce64.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida77
path: build_x64_7.7/Release/Ponce.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida80
path: build_x64_8.0/Release/Ponce64.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida80
path: build_x64_8.0/Release/Ponce.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida81
path: build_x64_8.1/Release/Ponce64.dll
- uses: actions/upload-artifact@master
with:
name: Ponce_ida81
path: build_x64_8.1/Release/Ponce.dll
release:
runs-on: ubuntu-latest
if: github.event_name == 'release'
needs: build
steps:
- name: Download all Windows arifacts
uses: actions/download-artifact@v2
with:
path: ./my_artifacts
- name: Set output
id: vars
run: |
echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Build zip file
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
cd my_artifacts
zip -r ../ponce-$RELEASE_VERSION-win.zip *
- name: Upload Windows artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./ponce-${{ steps.vars.outputs.tag }}-win.zip
asset_name: ponce-${{ steps.vars.outputs.tag }}-win.zip
asset_content_type: application/zip