-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (63 loc) · 2.36 KB
/
Copy pathmain.yml
File metadata and controls
77 lines (63 loc) · 2.36 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build iSync Tweak
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Get full git history for versioning
- name: Set up Theos
run: |
# Install Xcode command line tools
xcode-select --install || true
# Setup Theos
export THEOS="${HOME}/theos"
git clone --depth=1 --branch=master https://github.com/theos/theos.git "${THEOS}"
# Install dependencies
brew install ldid xz
# Download iOS SDK (using a known working version)
mkdir -p "${THEOS}/sdks"
curl -L https://github.com/theos/sdks/archive/master.zip -o sdks.zip
unzip -q sdks.zip
mv sdks-master/*.sdk "${THEOS}/sdks/" 2>/dev/null || true
# Set environment variables
echo "THEOS=${THEOS}" >> $GITHUB_ENV
echo "THEOS_MAKE_PARALLEL=no" >> $GITHUB_ENV
echo "THEOS_PLATFORM_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer" >> $GITHUB_ENV
echo "SDKROOT=${THEOS_PLATFORM_SDK_ROOT}/SDKs/iPhoneOS.sdk" >> $GITHUB_ENV
echo "CFLAGS=-isysroot ${SDKROOT} -I${THEOS}/include" >> $GITHUB_ENV
echo "LDFLAGS=-F${SDKROOT}/System/Library/Frameworks -F${SDKROOT}/System/Library/PrivateFrameworks" >> $GITHUB_ENV
echo "PATH=${THEOS}/bin:${THEOS}/vendor/bin:${PATH}" >> $GITHUB_ENV
- name: Debug - List repo contents
run: |
echo "=== Repository structure ==="
ls -la
echo "=== iphonedeb directory ==="
ls -la iphonedeb/ || echo "iphonedeb directory not found"
- name: Build package
run: |
# Debug: Show environment
env | sort
# Go to project directory
cd iphonedeb
# Clean and build
make clean
make package \
ARCHS="armv7 armv7s arm64" \
TARGET=iphone:clang:latest:9.0 \
THEOS_PACKAGE_SCHEME=rootless \
V=1
# List built packages
find . -name "*.deb" -ls
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
name: iSyncOverlay-deb
path: iphonedeb/packages/*.deb
if-no-files-found: error