forked from Neoncat-OG/Chromium-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.52 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 Blink Chrome for iOS
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Xcode
run: |
sudo xcode-select --switch /Applications/Xcode.app
sudo xcodebuild -license accept
- name: Install Dependencies
run: |
# Install depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
echo 'export PATH="$PATH:$PWD/depot_tools"' >> ~/.bash_profile
source ~/.bash_profile
# Fetch Chromium for iOS
mkdir chromium && cd chromium
fetch ios --nohistory # Corrected the flag here
cd src
- name: Build Blink Chrome for iOS
run: |
# Set up the build for Blink on iOS
echo "[gn_args]" > ~/.setup-gn
echo "use_blink = true" >> ~/.setup-gn
# Run the setup script
python3 ios/build/tools/setup-gn.py
# Build Blink Chrome for iOS
autoninja -C out/Release-iphonesimulator content_shell
- name: Archive IPA
run: |
cd out/Release-iphonesimulator
xcodebuild -exportArchive -archivePath content_shell.xcarchive -exportOptionsPlist ExportOptions.plist -exportPath content_shell
- name: Upload IPA to temp.sh
run: |
curl -F "file=@out/Release-iphonesimulator/content_shell/content_shell.ipa" https://temp.sh/upload