forked from johnno1962/InjectionIII
-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (50 loc) · 1.93 KB
/
main.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
name: Build
on: [workflow_dispatch, pull_request]
jobs:
build:
name: Build Injection Artifacts
runs-on: macos-12
steps:
- name: Setup Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: '13.4.1'
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build
run: |-
set -o pipefail
mkdir output
xcodebuild CODE_SIGNING_ALLOWED=NO -project InjectionIII.xcodeproj -scheme InjectionIII -config Release 2>&1 | tee output/build_log.txt
injection_app_path=$(xcodebuild -config Release -showBuildSettings | grep "CODESIGNING_FOLDER_PATH" | cut -f2 -d'=' | tr -d ' ')
mkdir output/device
rsync -au "$injection_app_path/Contents/Resources/device/iOSInjection.bundle" output/device/
zip --symlinks -r output/iOSDeviceInjection.zip output/device/iOSInjection.bundle
mkdir output/simulator
rsync -au "$injection_app_path/Contents/Resources/simulator/iOSInjection.bundle" output/simulator/
zip --symlinks -r output/iOSSimulatorInjection.zip output/simulator/iOSInjection.bundle
rsync -au "$injection_app_path" output/
zip --symlinks -r output/InjectionIII.app.zip output/InjectionIII.app
- name: Upload iOS device bundle
uses: actions/upload-artifact@v2
with:
name: iOSDeviceInjection.zip
path: output/iOSDeviceInjection.zip
- name: Upload iOS simulator bundle
uses: actions/upload-artifact@v2
with:
name: iOSSimulatorInjection.zip
path: output/iOSSimulatorInjection.zip
- name: Upload InjectionIII app
uses: actions/upload-artifact@v2
with:
name: InjectionIII.app.zip
path: output/InjectionIII.app.zip
- name: Upload logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: logs
path: output/build_log.txt