-
Notifications
You must be signed in to change notification settings - Fork 221
76 lines (67 loc) · 2.5 KB
/
build-swift.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
name: Build Swift
on:
push:
branches: [ "swift" ]
pull_request:
branches: [ "swift" ]
jobs:
build:
runs-on: macos-14
env:
THEOS: ${{ github.workspace }}/theos
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.0'
- name: Setup Theos
uses: actions/checkout@v4
with:
repository: theos/theos
path: ${{ github.workspace }}/theos
submodules: recursive
- name: Install Dependencies
run: |
brew install make dpkg ldid
echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH
- name: Copy SwiftProtobuf (rootful)
run: |
mkdir swiftprotobuf && cd "$_"
wget https://github.com/whoeevee/swift-protobuf/releases/download/1.28.1/org.swift.protobuf.swiftprotobuf_1.28.1_iphoneos-arm.deb
ar -x org.swift.protobuf.swiftprotobuf_1.28.1_iphoneos-arm.deb
tar -xvf data.tar.lzma
cp -r Library/Frameworks/SwiftProtobuf.framework $THEOS/lib
- name: Copy SwiftProtobuf (rootless)
run: |
mkdir swiftprotobuf-rootless && cd "$_"
wget https://github.com/whoeevee/swift-protobuf/releases/download/1.28.1/org.swift.protobuf.swiftprotobuf_1.28.1_iphoneos-arm64.deb
ar -x org.swift.protobuf.swiftprotobuf_1.28.1_iphoneos-arm64.deb
tar -xvf data.tar.lzma
cp -r var/jb/Library/Frameworks/SwiftProtobuf.framework $THEOS/lib/iphone/rootless
- name: Build EeveeSpotify (debug)
run: |
make package
echo "filename=$(find . -name '*debug*' -path './packages/*' | cut -d/ -f3)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{env.filename}}
path: packages/${{env.filename}}
if-no-files-found: error
- name: Build EeveeSpotify (rootful)
run: |
make package FINALPACKAGE=1
echo "filename=$(find . -not -name '*debug*' -path './packages/*' | cut -d/ -f3)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{env.filename}}
path: packages/${{env.filename}}
if-no-files-found: error
- name: Build EeveeSpotify (rootless)
run: |
make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
echo "filename=$(find . -name '*arm64*' -path './packages/*' | cut -d/ -f3)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{env.filename}}
path: packages/${{env.filename}}
if-no-files-found: error