-
Notifications
You must be signed in to change notification settings - Fork 330
63 lines (54 loc) · 1.86 KB
/
compile.yml
File metadata and controls
63 lines (54 loc) · 1.86 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
name: Compile
on:
workflow_dispatch:
pull_request:
branches:
- main
env:
THEOS: ""
VERSION: "0.0.0-0"
jobs:
fetch-and-release:
runs-on: macos-14
steps:
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4'
- name: Checkout Repository
uses: actions/checkout@v4.1.1
- name: Install Dependencies
run: |
echo /usr/local/opt/make/libexec/gnubin >> $GITHUB_PATH
echo /opt/homebrew/opt/make/libexec/gnubin >> $GITHUB_PATH
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install dpkg ldid-procursus make xcbeautify openssl@3
VERSION_FILE="TrollFools/Version.xcconfig"
VERSION_MAIN=$(grep "VERSION" $VERSION_FILE | cut -d'=' -f2 | tr -d '[:space:]')
VERSION_BUILD=$(grep "BUILD_NUMBER" $VERSION_FILE | cut -d'=' -f2 | tr -d '[:space:]')
VERSION=$VERSION_MAIN-$VERSION_BUILD
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Version: $VERSION"
- name: Checkout THEOS
uses: actions/checkout@v4.1.1
with:
repository: theos/theos
ref: 942cd0c015f93d8c2d714ba0c69e7f420157c382
path: theos
submodules: recursive
- name: Add THEOS environment variables
run: |
rm -rf $GITHUB_WORKSPACE/theos/sdks
echo "THEOS=$GITHUB_WORKSPACE/theos" >> $GITHUB_ENV
echo "THEOS_PACKAGE_SCHEME=rootless" >> $GITHUB_ENV
echo "FINALPACKAGE=1" >> $GITHUB_ENV
- name: Checkout SDKs
uses: actions/checkout@v4.1.1
with:
repository: theos/sdks
ref: master
path: ${{ env.THEOS }}/sdks
- name: Build Packages
run: |
make package
cp packages/*.tipa .
find .theos/obj -name "*.dSYM" -exec cp -r {} . \;