-
Notifications
You must be signed in to change notification settings - Fork 1
723 lines (708 loc) · 26 KB
/
ci.yml
File metadata and controls
723 lines (708 loc) · 26 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
name: CI
on: push
env:
ANDROID_NDK_VERSION: r25b
NODE_TARGETS_DEFAULT: '12.0.0 14.0.0 16.0.0 18.0.0 19.0.0'
NODE_TARGETS_FREEBSD: '14.0.0 16.0.0 17.0.1'
ELECTRON_TARGETS_DEFAULT: '21.0.0'
ELECTRON_TARGETS_FREEBSD: '16.0.0'
jobs:
publish-prod:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs:
- package-linux
- package-android
- package-freebsd
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Install tools
run: |
sudo apt-get update
sudo apt-get install -y reprepro
sudo npm install -g cloudflare-cli
- name: Download release assets
uses: actions/download-artifact@v3
with:
name: release-assets
path: build/release-assets/
- name: Download Node.js and Electron prebuilds for Linux/x86
uses: actions/download-artifact@v3
with:
name: frida-node-linux-x86
path: build/release-assets/
- name: Download Node.js and Electron prebuilds for Linux/x86_64
uses: actions/download-artifact@v3
with:
name: frida-node-linux-x86_64
path: build/release-assets/
- name: Download Node.js and Electron prebuilds for Linux/arm64
uses: actions/download-artifact@v3
with:
name: frida-node-linux-arm64
path: build/release-assets/
- name: Download Node.js and Electron prebuilds for FreeBSD/arm64
uses: actions/download-artifact@v3
with:
name: frida-node-freebsd-arm64
path: build/release-assets/
- name: Package Cirrus CI artifacts
run: releng/package-cirrus-ci-artifacts.sh ${{ github.sha }}
- name: Rename release assets
run: releng/rename-release-assets.sh
- name: Publish release to GitHub
uses: softprops/action-gh-release@v1
with:
name: "Frida ${{ env.FRIDA_VERSION }}"
body: "See https://frida.re/news/ for details."
files: build/release-assets/*
- name: Publish Python bindings to PyPI
uses: ./.github/actions/publish-python-bindings
with:
site: production
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
testpypi-token: ${{ secrets.TEST_PYPI_API_TOKEN }}
- name: Publish Node.js bindings to npm
run: |
cd frida-node
npm version $FRIDA_VERSION
mkdir prebuilds
cp ../build/release-assets/frida-*-node-*-linux-x64.tar.gz prebuilds/
npm install
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish frida-gadget-ios to npm
run: |
cd releng/modules/frida-gadget-ios
npm version $FRIDA_VERSION
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Trigger magisk-frida CI
run: |
curl \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.MAGISK_FRIDA_TOKEN }}" \
https://api.github.com/repos/ViRb3/magisk-frida/dispatches \
-d '{"event_type":"build"}'
package-linux:
if: startsWith(github.ref, 'refs/tags/')
needs: frida-linux
strategy:
matrix:
arch: [x86_64]
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Package Gum devkit
uses: ./.github/actions/package-artifact-files-as-tarball
with:
name: frida-gum-devkit-linux-${{ matrix.arch }}
- name: Package GumJS devkit
uses: ./.github/actions/package-artifact-files-as-tarball
with:
name: frida-gumjs-devkit-linux-${{ matrix.arch }}
- name: Package Core devkit
uses: ./.github/actions/package-artifact-files-as-tarball
with:
name: frida-core-devkit-linux-${{ matrix.arch }}
- name: Package frida-server
uses: ./.github/actions/package-artifact-file
with:
name: frida-server-linux-${{ matrix.arch }}
- name: Package frida-portal
uses: ./.github/actions/package-artifact-file
with:
name: frida-portal-linux-${{ matrix.arch }}
- name: Package frida-gadget
uses: ./.github/actions/package-artifact-file
with:
name: frida-gadget-linux-${{ matrix.arch }}
- name: Package frida-inject
uses: ./.github/actions/package-artifact-file
with:
name: frida-inject-linux-${{ matrix.arch }}
- name: Package QML bindings
if: matrix.arch == 'x86_64'
uses: ./.github/actions/package-artifact-files-as-tarball
with:
name: frida-qml-linux-${{ matrix.arch }}
package-android:
if: startsWith(github.ref, 'refs/tags/')
needs: frida-android
strategy:
matrix:
arch: [arm64]
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
# - name: Package Gum devkit
# uses: ./.github/actions/package-artifact-files-as-tarball
# with:
# name: frida-gum-devkit-android-${{ matrix.arch }}
# - name: Package GumJS devkit
# uses: ./.github/actions/package-artifact-files-as-tarball
# with:
# name: frida-gumjs-devkit-android-${{ matrix.arch }}
# - name: Package Core devkit
# uses: ./.github/actions/package-artifact-files-as-tarball
# with:
# name: frida-core-devkit-android-${{ matrix.arch }}
- name: Package frida-server
uses: ./.github/actions/package-artifact-file
with:
name: frida-server-android-${{ matrix.arch }}
# - name: Package frida-portal
# uses: ./.github/actions/package-artifact-file
# with:
# name: frida-portal-android-${{ matrix.arch }}
# - name: Package frida-gadget
# uses: ./.github/actions/package-artifact-file
# with:
# name: frida-gadget-android-${{ matrix.arch }}
# - name: Package frida-inject
# uses: ./.github/actions/package-artifact-file
# with:
# name: frida-inject-android-${{ matrix.arch }}
package-freebsd:
if: startsWith(github.ref, 'refs/tags/')
needs: frida-freebsd
strategy:
matrix:
arch: [arm64]
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Package Gum devkit
uses: ./.github/actions/package-artifact-files-as-tarball
with:
name: frida-gum-devkit-freebsd-${{ matrix.arch }}
- name: Package GumJS devkit
uses: ./.github/actions/package-artifact-files-as-tarball
with:
name: frida-gumjs-devkit-freebsd-${{ matrix.arch }}
- name: Package Core devkit
uses: ./.github/actions/package-artifact-files-as-tarball
with:
name: frida-core-devkit-freebsd-${{ matrix.arch }}
- name: Package frida-server
uses: ./.github/actions/package-artifact-file
with:
name: frida-server-freebsd-${{ matrix.arch }}
- name: Package frida-portal
uses: ./.github/actions/package-artifact-file
with:
name: frida-portal-freebsd-${{ matrix.arch }}
- name: Package frida-gadget
uses: ./.github/actions/package-artifact-file
with:
name: frida-gadget-freebsd-${{ matrix.arch }}
- name: Package frida-inject
uses: ./.github/actions/package-artifact-file
with:
name: frida-inject-freebsd-${{ matrix.arch }}
frida-linux:
needs: sdk-linux
strategy:
matrix:
arch: [x86_64]
fail-fast: false
runs-on: ubuntu-latest
container: ghcr.io/frida/x-tools-linux-${{ matrix.arch }}:latest
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Install packages needed for installing Qt
if: matrix.arch == 'x86_64'
run: |
apt-get update
apt-get install -y sudo
- name: Install Qt
if: matrix.arch == 'x86_64'
uses: jurplel/install-qt-action@v3
with:
cache: true
setup-python: false
dir: '${{ github.workspace }}/qt-example/'
- name: Build Gum libraries and tools
run: make build/frida_thin-linux-${{ matrix.arch }}/lib/pkgconfig/frida-gum-1.0.pc
- name: Build Gum devkit
run: releng/devkit.py -t frida-gum linux-${{ matrix.arch }} build/devkits/gum
- name: Upload Gum devkit
uses: actions/upload-artifact@v3
with:
name: frida-gum-devkit-linux-${{ matrix.arch }}
path: build/devkits/gum/
- name: Build GumJS devkit
run: releng/devkit.py -t frida-gumjs linux-${{ matrix.arch }} build/devkits/gumjs
- name: Upload GumJS devkit
uses: actions/upload-artifact@v3
with:
name: frida-gumjs-devkit-linux-${{ matrix.arch }}
path: build/devkits/gumjs/
- name: Build Core libraries and tools
run: make build/frida_thin-linux-${{ matrix.arch }}/lib/pkgconfig/frida-core-1.0.pc
- name: Build Core devkit
run: releng/devkit.py -t frida-core linux-${{ matrix.arch }} build/devkits/core
- name: Upload Core devkit
uses: actions/upload-artifact@v3
with:
name: frida-core-devkit-linux-${{ matrix.arch }}
path: build/devkits/core/
- name: Upload frida-server
uses: actions/upload-artifact@v3
with:
name: frida-server-linux-${{ matrix.arch }}
path: build/frida-linux-${{ matrix.arch }}/bin/frida-server
- name: Upload frida-portal
uses: actions/upload-artifact@v3
with:
name: frida-portal-linux-${{ matrix.arch }}
path: build/frida-linux-${{ matrix.arch }}/bin/frida-portal
- name: Upload frida-inject
uses: actions/upload-artifact@v3
with:
name: frida-inject-linux-${{ matrix.arch }}
path: build/frida-linux-${{ matrix.arch }}/bin/frida-inject
- name: Upload 32-bit frida-gadget
if: ${{ !contains(matrix.arch, '64') }}
uses: actions/upload-artifact@v3
with:
name: frida-gadget-linux-${{ matrix.arch }}
path: build/frida-linux-${{ matrix.arch }}/lib/frida/32/frida-gadget.so
- name: Upload 64-bit frida-gadget
if: ${{ contains(matrix.arch, '64') }}
uses: actions/upload-artifact@v3
with:
name: frida-gadget-linux-${{ matrix.arch }}
path: build/frida-linux-${{ matrix.arch }}/lib/frida/64/frida-gadget.so
- name: Build Python bindings
run: |
make build/tmp_thin-linux-${{ matrix.arch }}/frida-python3.10/.frida-stamp \
PYTHON_NAME=python3.10 \
PYTHON_INCDIR=/opt/x-tools/$XTOOLS_HOST/$XTOOLS_HOST/sysroot/usr/include/python3.10
export FRIDA_EXTENSION=$PWD/build/frida_thin-linux-${{ matrix.arch }}/lib/python3.10/site-packages/_frida.so
frida_arch=$(echo "${{ matrix.arch }}" | cut -f1 -d"-")
case $frida_arch in
x86)
py_arch=i686
;;
armhf)
py_arch=armv7l
;;
arm64)
py_arch=aarch64
;;
*)
py_arch=$frida_arch
;;
esac
case ${{ matrix.arch }} in
*-musl)
py_platform=musllinux_1_1_${py_arch}
;;
x86*)
py_platform=manylinux_2_5_${py_arch}.manylinux1_${py_arch}
;;
arm*|ppc*|s390x)
py_platform=manylinux_2_17_${py_arch}.manylinux2014_${py_arch}
;;
*)
py_platform=manylinux_2_5_${py_arch}
;;
esac
bdist_wheel_py=/usr/lib/python3/dist-packages/wheel/bdist_wheel.py
sed "s/plat_name = plat_name\\.lower()\\.replace('-', '_')\\.replace('.', '_')/plat_name = plat_name.lower().replace('-', '_')/" \
$bdist_wheel_py > $bdist_wheel_py.patched
if cmp -s $bdist_wheel_py $bdist_wheel_py.patched; then
rm -f $bdist_wheel_py.patched
echo 'Unable to patch bdist_wheel.py' > /dev/stderr
exit 1
else
mv $bdist_wheel_py.patched $bdist_wheel_py
fi
cd frida-python
export _PYTHON_HOST_PLATFORM=linux-$py_arch
echo "plat_name = $py_platform" >> setup.cfg
pip wheel -w ../build/wheels --no-deps .
- name: Upload Python bindings
uses: actions/upload-artifact@v3
with:
name: frida-python-linux-${{ matrix.arch }}
path: build/wheels/frida-*.whl
- name: Publish Python bindings to PyPI
uses: ./.github/actions/publish-python-bindings
with:
site: production
# - name: Build Node.js bindings
# if: ${{ !(startsWith(matrix.arch, 'mips') || endsWith(matrix.arch, '-musl')) }}
# run: |
# frida_arch=$(echo "${{ matrix.arch }}" | cut -f1 -d"-")
# case $frida_arch in
# x86)
# gyp_arch=ia32
# ;;
# x86_64)
# gyp_arch=x64
# ;;
# armhf)
# gyp_arch=arm
# ;;
# *)
# gyp_arch=$frida_arch
# ;;
# esac
# export npm_config_arch=$gyp_arch
# export npm_config_jobs=max
# export prebuild_arch=$gyp_arch
# cd frida-node
# npm version $FRIDA_VERSION
# npm install
# for target in ${{ env.NODE_TARGETS_DEFAULT }}; do
# npm run prebuild -- -r node -t $target
# done
# for target in ${{ env.ELECTRON_TARGETS_DEFAULT }}; do
# npm run prebuild -- -r electron -t $target
# done
# - name: Upload Node.js bindings
# if: ${{ !(startsWith(matrix.arch, 'mips') || endsWith(matrix.arch, '-musl')) }}
# uses: actions/upload-artifact@v3
# with:
# name: frida-node-linux-${{ matrix.arch }}
# path: frida-node/prebuilds/*
- name: Build QML bindings
if: matrix.arch == 'x86_64'
run: |
cd build/tmp_thin-linux-${{ matrix.arch }}
mkdir frida-qml
cd frida-qml
qmake QMAKE_TARGET.arch=${{ matrix.arch }} ../../../frida-qml
make -j$(nproc) install
- name: Upload QML bindings
if: matrix.arch == 'x86_64'
uses: actions/upload-artifact@v3
with:
name: frida-qml-linux-${{ matrix.arch }}
path: build/frida-linux-${{ matrix.arch }}/lib/qt5/qml/
frida-android:
needs: [sdk-linux, sdk-android-64]
strategy:
matrix:
arch: [arm64]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Set up NDK
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: ${{ env.ANDROID_NDK_VERSION }}
add-to-path: false
- name: Add ANDROID_NDK_ROOT to environment
run: echo "ANDROID_NDK_ROOT=${{ steps.setup-ndk.outputs.ndk-path }}" >> $GITHUB_ENV
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
# - name: Build Gum libraries and tools
# run: make build/frida-android-${{ matrix.arch }}/lib/pkgconfig/frida-gum-1.0.pc
# - name: Build Gum devkit
# run: releng/devkit.py frida-gum android-${{ matrix.arch }} build/devkits/gum
# - name: Upload Gum devkit
# uses: actions/upload-artifact@v3
# with:
# name: frida-gum-devkit-android-${{ matrix.arch }}
# path: build/devkits/gum/
# - name: Build GumJS devkit
# run: releng/devkit.py frida-gumjs android-${{ matrix.arch }} build/devkits/gumjs
# - name: Upload GumJS devkit
# uses: actions/upload-artifact@v3
# with:
# name: frida-gumjs-devkit-android-${{ matrix.arch }}
# path: build/devkits/gumjs/
- name: Build Core libraries and tools
run: make build/frida-android-${{ matrix.arch }}/lib/pkgconfig/frida-core-1.0.pc
# - name: Build Core devkit
# run: releng/devkit.py frida-core android-${{ matrix.arch }} build/devkits/core
# - name: Upload Core devkit
# uses: actions/upload-artifact@v3
# with:
# name: frida-core-devkit-android-${{ matrix.arch }}
# path: build/devkits/core/
- name: Upload frida-server
uses: actions/upload-artifact@v3
with:
name: frida-server-android-${{ matrix.arch }}
path: build/frida-android-${{ matrix.arch }}/bin/frida-server
# - name: Upload frida-portal
# uses: actions/upload-artifact@v3
# with:
# name: frida-portal-android-${{ matrix.arch }}
# path: build/frida-android-${{ matrix.arch }}/bin/frida-portal
# - name: Upload frida-inject
# uses: actions/upload-artifact@v3
# with:
# name: frida-inject-android-${{ matrix.arch }}
# path: build/frida-android-${{ matrix.arch }}/bin/frida-inject
# - name: Upload 32-bit frida-gadget
# if: ${{ !contains(matrix.arch, '64') }}
# uses: actions/upload-artifact@v3
# with:
# name: frida-gadget-android-${{ matrix.arch }}
# path: build/frida-android-${{ matrix.arch }}/lib/frida/32/frida-gadget.so
# - name: Upload 64-bit frida-gadget
# if: ${{ contains(matrix.arch, '64') }}
# uses: actions/upload-artifact@v3
# with:
# name: frida-gadget-android-${{ matrix.arch }}
# path: build/frida-android-${{ matrix.arch }}/lib/frida/64/frida-gadget.so
frida-freebsd:
runs-on: [freebsd, arm64]
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Roll toolchain
run: releng/deps.py roll toolchain freebsd-arm64 --activate
- name: Roll SDK
run: releng/deps.py roll sdk freebsd-arm64
- name: Build Gum libraries and tools
run: make gum
- name: Build Gum devkit
run: releng/devkit.py frida-gum freebsd-arm64 build/devkits/gum
- name: Upload Gum devkit
uses: actions/upload-artifact@v3
with:
name: frida-gum-devkit-freebsd-arm64
path: build/devkits/gum/
- name: Build GumJS devkit
run: releng/devkit.py frida-gumjs freebsd-arm64 build/devkits/gumjs
- name: Upload GumJS devkit
uses: actions/upload-artifact@v3
with:
name: frida-gumjs-devkit-freebsd-arm64
path: build/devkits/gumjs/
- name: Test Gum
run: make check-gum
- name: Build Core libraries and tools
run: make core
- name: Build Core devkit
run: releng/devkit.py frida-core freebsd-arm64 build/devkits/core
- name: Upload Core devkit
uses: actions/upload-artifact@v3
with:
name: frida-core-devkit-freebsd-arm64
path: build/devkits/core/
- name: Upload frida-server
uses: actions/upload-artifact@v3
with:
name: frida-server-freebsd-arm64
path: build/frida-freebsd-arm64/bin/frida-server
- name: Upload frida-portal
uses: actions/upload-artifact@v3
with:
name: frida-portal-freebsd-arm64
path: build/frida-freebsd-arm64/bin/frida-portal
- name: Upload frida-inject
uses: actions/upload-artifact@v3
with:
name: frida-inject-freebsd-arm64
path: build/frida-freebsd-arm64/bin/frida-inject
- name: Upload frida-gadget
uses: actions/upload-artifact@v3
with:
name: frida-gadget-freebsd-arm64
path: build/frida-freebsd-arm64/lib/frida/64/frida-gadget.so
- name: Test Core
run: make check-core
- name: Build Python bindings
run: |
make python
export FRIDA_EXTENSION=$PWD/build/frida-freebsd-arm64/lib/python3.9/site-packages/_frida.so
cd frida-python
pip wheel -w ../build/wheels --no-deps .
- name: Upload Python bindings
uses: actions/upload-artifact@v3
with:
name: frida-python-freebsd-arm64
path: build/wheels/frida-*.whl
- name: Build Node.js bindings
run: |
export npm_config_jobs=max
cd frida-node
npm version $FRIDA_VERSION
npm install
for target in ${{ env.NODE_TARGETS_FREEBSD }}; do
npm run prebuild -- -r node -t $target
done
for target in ${{ env.ELECTRON_TARGETS_FREEBSD }}; do
npm run prebuild -- -r electron -t $target
done
- name: Upload Node.js bindings
uses: actions/upload-artifact@v3
with:
name: frida-node-freebsd-arm64
path: frida-node/prebuilds/*
frida-qnx:
runs-on: ubuntu-latest
needs: sdk-linux
container: ghcr.io/frida/qnx-tools:latest
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Roll SDK
run: releng/deps.py roll sdk qnx-armeabi
- name: Build Gum libraries and tools
run: make gum-qnx-armeabi
- name: Build Gum devkit
run: releng/devkit.py -t frida-gum qnx-armeabi build/devkits/gum
- name: Upload Gum devkit
uses: actions/upload-artifact@v3
with:
name: frida-gum-devkit-qnx-armeabi
path: build/devkits/gum/
- name: Build GumJS devkit
run: releng/devkit.py -t frida-gumjs qnx-armeabi build/devkits/gumjs
- name: Upload GumJS devkit
uses: actions/upload-artifact@v3
with:
name: frida-gumjs-devkit-qnx-armeabi
path: build/devkits/gumjs/
- name: Test Gum
run: |
tar -C build/tmp_thin-qnx-armeabi/frida-gum/tests -cf /tmp/runner.tar gum-tests data/
/opt/sabrelite/run.sh /tmp/runner.tar /opt/frida/gum-tests
- name: Build Core libraries and tools
run: make core-qnx-armeabi
- name: Build Core devkit
run: releng/devkit.py -t frida-core qnx-armeabi build/devkits/core
- name: Upload Core devkit
uses: actions/upload-artifact@v3
with:
name: frida-core-devkit-qnx-armeabi
path: build/devkits/core/
- name: Upload frida-server
uses: actions/upload-artifact@v3
with:
name: frida-server-qnx-armeabi
path: build/frida_thin-qnx-armeabi/bin/frida-server
- name: Upload frida-portal
uses: actions/upload-artifact@v3
with:
name: frida-portal-qnx-armeabi
path: build/frida_thin-qnx-armeabi/bin/frida-portal
- name: Upload frida-inject
uses: actions/upload-artifact@v3
with:
name: frida-inject-qnx-armeabi
path: build/frida_thin-qnx-armeabi/bin/frida-inject
- name: Upload frida-gadget
uses: actions/upload-artifact@v3
with:
name: frida-gadget-qnx-armeabi
path: build/frida_thin-qnx-armeabi/lib/frida/32/frida-gadget.so
- name: Test Core
run: |
mkdir -p /tmp/pkg
cd build/tmp_thin-qnx-armeabi/frida-core
cp -a tests/frida-tests tests/labrats/ lib/agent/frida-agent.so /tmp/pkg
tar -C /tmp/pkg -cf /tmp/runner.tar .
/opt/sabrelite/run.sh /tmp/runner.tar /opt/frida/frida-tests
continue-on-error: true
toolchain-linux:
strategy:
matrix:
arch: [x86_64, arm64]
fail-fast: false
runs-on: ubuntu-latest
container: ghcr.io/frida/x-tools-linux-${{ matrix.arch }}:latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Roll toolchain
run: releng/deps.py roll toolchain linux-${{ matrix.arch }}
sdk-linux:
needs: toolchain-linux
strategy:
matrix:
arch: [x86_64, arm64]
fail-fast: false
runs-on: ubuntu-latest
container: ghcr.io/frida/x-tools-linux-${{ matrix.arch }}:latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Set FRIDA_CAN_RUN_HOST_BINARIES
if: ${{ matrix.arch == 'x86' }}
run: echo "FRIDA_CAN_RUN_HOST_BINARIES=yes" >> $GITHUB_ENV
- name: Configure qemu-user
if: ${{ !startsWith(matrix.arch, 'x86') }}
run: echo "FRIDA_QEMU_SYSROOT=/opt/x-tools/$XTOOLS_HOST/$XTOOLS_HOST/sysroot" >> $GITHUB_ENV
- name: Roll SDK
run: releng/deps.py roll sdk linux-${{ matrix.arch }} --activate
sdk-android-64:
needs: toolchain-linux
strategy:
matrix:
arch: [x86_64, arm64]
fail-fast: false
runs-on: ubuntu-latest
container: ghcr.io/frida/x-tools-linux-x86_64:latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Set up NDK
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: ${{ env.ANDROID_NDK_VERSION }}
add-to-path: false
- name: Roll SDK
run: |
export \
CC_FOR_BUILD=$CC \
CXX_FOR_BUILD=$CXX \
AS_FOR_BUILD=$AS \
LD_FOR_BUILD=$LD \
AR_FOR_BUILD=$AR \
NM_FOR_BUILD=$NM \
RANLIB_FOR_BUILD=$RANLIB \
STRIP_FOR_BUILD=$STRIP \
READELF_FOR_BUILD=$READELF \
OBJCOPY_FOR_BUILD=$OBJCOPY \
OBJDUMP_FOR_BUILD=$OBJDUMP
unset CC CXX AS LD AR NM RANLIB STRIP READELF OBJCOPY OBJDUMP
releng/deps.py roll sdk android-${{ matrix.arch }} --activate
env:
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}