-
-
Notifications
You must be signed in to change notification settings - Fork 504
172 lines (153 loc) · 6.07 KB
/
development.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
name: Development build
on:
pull_request:
branches-ignore:
- 'l10n_main'
types: [opened, reopened]
push:
branches-ignore:
- 'l10n_main'
workflow_dispatch:
jobs:
build:
name: Development build
strategy:
matrix:
include:
- platform: 2
platform_name: ios
- platform: 3
platform_name: tvos
- platform: 7
platform_name: iossimulator
- platform: 8
platform_name: tvossimulator
runs-on: MacStadium
steps:
- name: Remove work folders
env:
password: ${{ secrets.ELLIE_MINI_SECRET }}
run: |
echo "before"
ls -lah ./
echo $password | sudo -S rm -rf ./* || true
echo $password | sudo -S rm -rf ./.??* || true
echo "after"
ls -lah ./
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository submodules
run: git submodule update --init --recursive
- name: Get gl4es latest commit hash
id: gl4es-sha
run: echo "::set-output name=sha::$(echo $(git ls-remote https://github.com/PojavLauncherTeam/gl4es-114-extra refs/heads/master | grep -io '^\S*'))"
shell: bash
- name: Cache gl4es
uses: actions/cache@v3
if: false # use gl4es 1.1.5
id: gl4es-cache
with:
path: gl4es/libs
key: gl4es-holy-ios-shared-2-${{ steps.gl4es-sha.outputs.sha }}
- name: Get gl4es
if: false && steps.gl4es-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: 'PojavLauncherTeam/gl4es-114-extra'
path: 'gl4es'
- name: Build gl4es
if: false && steps.gl4es-cache.outputs.cache-hit != 'true'
continue-on-error: true
run: |
cd gl4es
git config --global user.email "[email protected]"
git config --global user.name "github-actions"
export PATH=/opt/procursus/bin:$PATH
wget https://github.com/leetal/ios-cmake/raw/master/ios.toolchain.cmake
cmake -B build -DCMAKE_TOOLCHAIN_FILE=ios.toolchain.cmake -DDEFAULT_ES=2 \
-DNOX11=ON -DNOEGL=OFF -DSTATICLIB=OFF -DPLATFORM=OS64 \
-DCMAKE_C_FLAGS=-Wno-error=implicit-function-declaration
cmake --build build --config RelWithDebInfo --target GL
cp -R lib/libGL.dylib ../Natives/resources/Frameworks/libgl4es_114.dylib
- name: Push gl4es
if: false && github.event != 'pull_request' && github.ref_name == 'main' && steps.gl4es-cache.outputs.cache-hit != 'true'
continue-on-error: true
run: |
git add Natives/resources/Frameworks/libgl4es_114.dylib
git commit -am "CI: Update gl4es"
git push
- name: Get JRE8
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
path: depends
workflow_conclusion: success
allow_forks: false
repo: PojavLauncherTeam/android-openjdk-build-multiarch
branch: jre8-ios-jitjailed
name: jre8-ios-aarch64
- name: Get JRE17
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
path: depends
workflow_conclusion: completed
allow_forks: false
repo: PojavLauncherTeam/android-openjdk-build-multiarch
branch: buildjre17-21
name: jre17-ios-aarch64
- name: Get JRE21
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
path: depends
workflow_conclusion: completed
allow_forks: false
repo: PojavLauncherTeam/android-openjdk-build-multiarch
branch: buildjre17-21
name: jre21-ios-aarch64
- name: Build for ${{ matrix.platform_name }}
env:
password: ${{ secrets.ELLIE_MINI_SECRET }}
run: |
export PATH=/opt/procursus/bin:/opt/homebrew/bin:$PATH
export RUNNER=1 SLIMMED=1
if [ "${{ matrix.platform_name }}" == "ios" ]; then
# Build ipa and tipa for iOS
gmake -j$(sysctl -n hw.ncpu) dsym package PLATFORM=${{ matrix.platform }}
gmake -j$(sysctl -n hw.ncpu) dsym package PLATFORM=${{ matrix.platform }} TROLLSTORE_JIT_ENT=1
elif [ "${{ matrix.platform_name }}" == "tvos" ]; then
# Build tipa only for tvOS
gmake -j$(sysctl -n hw.ncpu) dsym package PLATFORM=${{ matrix.platform }} TROLLSTORE_JIT_ENT=1
else
# Build ipa only for everything else
gmake -j$(sysctl -n hw.ncpu) dsym package PLATFORM=${{ matrix.platform }}
fi
- name: Upload regular ipa
uses: actions/upload-artifact@v3
with:
name: net.kdt.pojavlauncher-${{ matrix.platform_name }}.ipa
path: artifacts/net.kdt.pojavlauncher-*-${{ matrix.platform_name }}.ipa
- name: Upload regular tipa
uses: actions/upload-artifact@v3
with:
name: net.kdt.pojavlauncher-${{ matrix.platform_name }}-trollstore.tipa
path: artifacts/net.kdt.pojavlauncher-*-${{ matrix.platform_name }}-trollstore.tipa
- name: Upload slimmed ipa
uses: actions/upload-artifact@v3
with:
name: net.kdt.pojavlauncher.slimmed-${{ matrix.platform_name }}.ipa
path: artifacts/net.kdt.pojavlauncher.slimmed-*-${{ matrix.platform_name }}.ipa
- name: Upload slimmed tipa
uses: actions/upload-artifact@v3
with:
name: net.kdt.pojavlauncher.slimmed-${{ matrix.platform_name }}-trollstore.tipa
path: artifacts/net.kdt.pojavlauncher.slimmed-*-${{ matrix.platform_name }}-trollstore.tipa
- name: Upload PojavLauncher.dSYM
uses: actions/upload-artifact@v3
with:
name: PojavLauncher.dSYM
path: artifacts/PojavLauncher.dSYM