-
Notifications
You must be signed in to change notification settings - Fork 74
216 lines (178 loc) · 7.61 KB
/
ci-macos.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
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
216
name: Build for OSX
on:
push:
pull_request:
release:
types: # This configuration does not affect the page_build event above
- created
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: robinraju/[email protected]
with:
repository: ${{ secrets.SDK_REPO }}
latest: true
filename: "IDA_SDKs.zip"
token: ${{ secrets.SDK_REPO_ACCESS_TOKEN }}
- name: Unzip IDA_SDKs.zip
shell: bash
run: |
unzip IDA_SDKs.zip -d IDA_SDKs
cd IDA_SDKs
unzip -n -q '*.zip'
- name: Install Triton (delete first two lines when Triton last port is in the CI)
run: |
echo "set(VCPKG_BUILD_TYPE release)" >> $VCPKG_INSTALLATION_ROOT/triplets/x64-osx.cmake
vcpkg install triton
- 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 -DCMAKE_TOOLCHAIN_FILE="$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 -DCMAKE_TOOLCHAIN_FILE="$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 -DCMAKE_TOOLCHAIN_FILE="$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 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk73" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$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 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk74" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$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 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk75" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$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 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk76" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$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 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk77" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$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 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk_pro80" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$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 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk_pro81" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$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/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida70
path: build_x64_7.0/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida71
path: build_x64_7.1/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida71
path: build_x64_7.1/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida72
path: build_x64_7.2/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida72
path: build_x64_7.2/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida73
path: build_x64_7.3/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida73
path: build_x64_7.3/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida74
path: build_x64_7.4/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida74
path: build_x64_7.4/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida75
path: build_x64_7.5/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida75
path: build_x64_7.5/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida76
path: build_x64_7.6/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida76
path: build_x64_7.6/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida77
path: build_x64_7.7/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida77
path: build_x64_7.7/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida80
path: build_x64_8.0/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida80
path: build_x64_8.0/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida81
path: build_x64_8.1/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida81
path: build_x64_8.1/Ponce.dylib
release:
runs-on: ubuntu-latest
if: github.event_name == 'release'
needs: build
steps:
- name: Download all OSX 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-osx.zip *
- name: Upload OSX 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 }}-osx.zip
asset_name: ponce-${{ steps.vars.outputs.tag }}-osx.zip
asset_content_type: application/zip