forked from Neoncat-OG/Chromium-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.25 KB
/
build.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
name: Build iOS IPA
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install depot_tools
run: |
cd $HOME
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
echo "$HOME/depot_tools" >> $GITHUB_PATH
- name: Fetch Chromium Source
run: |
cd $HOME
mkdir -p ~/chromium && cd ~/chromium
fetch --no-history ios
cd src
gclient sync
- name: Generate Build Files
run: |
cd ~/chromium/src && mkdir -p out/Release-iphoneos
gn gen out/Release-iphoneos --args='is_debug=false target_os="ios" ios_enable_code_signing=false target_cpu="arm64" use_blink=true'
- name: Build Chromium for iOS
run: |
cd ~/chromium/src
autoninja -C out/Release-iphoneos chrome
- name: Create .ipa File
run: |
cd ~/chromium/src/out/Release-iphoneos
mkdir -p Payload
cp -r chromium.app Payload/
zip -r chromium.ipa Payload
- name: Upload to temp.sh
run: |
curl -F "file=@chromium.ipa" https://temp.sh/upload