-
Notifications
You must be signed in to change notification settings - Fork 1
106 lines (93 loc) · 3.02 KB
/
build.yml
File metadata and controls
106 lines (93 loc) · 3.02 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
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
name: Build IMGTool iOS App
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Show Xcode and SDK info
run: |
xcodebuild -version
xcodebuild -showsdks
xcrun --sdk iphoneos --show-sdk-path
xcrun --find clang
xcrun --find clang++
- name: Make compilation script executable
run: |
echo "🔧 Making compile_engine.sh executable..."
chmod +x compile_engine.sh
ls -la compile_engine.sh
# Double-check permissions
if [ -x "compile_engine.sh" ]; then
echo "✅ Script is executable"
else
echo "❌ Script is not executable, trying alternative method..."
# Alternative method using bash directly
echo "#!/bin/bash" > temp_script.sh
cat compile_engine.sh | tail -n +2 >> temp_script.sh
chmod +x temp_script.sh
mv temp_script.sh compile_engine.sh
ls -la compile_engine.sh
fi
- name: Compile Box64 for iOS A18 Pro
run: |
echo "🚀 Compiling Box64 for iOS A18 Pro..."
if [ ! -f "compile_engine.sh" ]; then
echo "❌ compile_engine.sh not found!"
exit 1
fi
echo "🔧 Running script directly with bash to avoid permission issues..."
bash compile_engine.sh
- name: Verify Box64 Framework
run: |
echo "🔍 Verifying Box64.framework..."
if [ -d "Box64.framework" ]; then
echo "✅ Framework directory exists"
echo "📊 Framework contents:"
ls -la Box64.framework/
echo "🔍 Binary architecture:"
lipo -info Box64.framework/Box64
else
echo "❌ Framework not found!"
exit 1
fi
- name: Install XcodeGen
run: |
echo "📦 Installing XcodeGen..."
brew install xcodegen
- name: Generate Xcode project
run: |
echo "⚙️ Generating Xcode project..."
xcodegen generate
- name: Build IMGTool iOS app
run: |
echo "🔨 Building IMGTool iOS app..."
xcodebuild -project IMGTool.xcodeproj \
-scheme IMGTool \
-configuration Debug \
-destination generic/platform=iOS \
-derivedDataPath build \
CODE_SIGNING_ALLOWED=NO \
clean build
- name: Upload Box64 Framework
uses: actions/upload-artifact@v4
with:
name: Box64-Framework
path: Box64.framework/
retention-days: 30
- name: Upload Build Logs
uses: actions/upload-artifact@v4
with:
name: Build-Logs
path: build/
retention-days: 7