forked from NoisyFlake/NetworkManager
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (48 loc) · 1.68 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
54
55
56
57
58
59
name: Build iOS Tweak with Theos
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Check cache
run: |
echo upstream_heads=`git ls-remote https://github.com/theos/theos | head -n 1 | cut -f 1`-`git ls-remote https://github.com/theos/sdks | head -n 1 | cut -f 1` >> $GITHUB_ENV
- name: Use cache
id: cache
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/theos
key: ${{ runner.os }}-${{ env.upstream_heads }}
- name: Prepare Theos
uses: Randomblock1/theos-action@v1
- name: Install CCSupport
run: |
git clone https://github.com/opa334/CCSupportTemplates.git $HOME/CCSupportTemplates
cd $HOME/CCSupportTemplates/
chmod +x install.sh
./install.sh
echo "Should be done installing CCSupport"
- name: Dirty check to make sure ld is installed
run: |
echo "testing1"
echo $(ld)
echo "testing2"
- name: Build package (rootless)
run: |
rm -f packages/*
make package FINALPACKAGE=1 SYSROOT=$THEOS/sdks/iPhoneOS16.5.sdk THEOS_PACKAGE_SCHEME=rootless
- name: Build package (rootful)
run: |
rm -f packages/*
make package FINALPACKAGE=1 SYSROOT=$THEOS/sdks/iPhoneOS16.5.sdk THEOS_PACKAGE_SCHEME=rootful
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: "Package built by ${{ matrix.os }}"
path: ${{ github.workspace }}/packages/*.deb