@@ -140,69 +140,55 @@ jobs:
140140 path : export/release/html5/bin
141141
142142 buildAndroid :
143- name : Build Android
143+ name : Android
144144 runs-on : ubuntu-latest
145- needs : setup-haxe # Dependency remains, though the cache job itself might have limited direct impact here
145+ needs : setup-haxe
146146 steps :
147147 - name : Checkout Code
148148 uses : actions/checkout@v4.1.7
149-
150- # 1. Setup Java (Required for Android SDK tools)
151- - name : Setup Java JDK
149+
150+ - name : Setup Java (JDK 17 for Android tools)
152151 uses : actions/setup-java@v4
153152 with :
154- distribution : ' temurin' # Or another distribution like 'zulu'
155- java-version : ' 11' # JDK 11 is widely compatible for Android. Use '17' if needed.
156-
157- # 2. Setup Haxe
153+ distribution : ' temurin'
154+ java-version : ' 17'
155+
158156 - name : Setup Haxe
159157 uses : krdlab/setup-haxe@master
160158 with :
161159 haxe-version : 4.3.6
162-
163- # 3. Setup Android SDK & NDK
164- # This action downloads and sets up the necessary Android components
165- # and sets environment variables like ANDROID_HOME, ANDROID_SDK_ROOT
166- - name : Setup Android SDK
167- uses : android-actions/setup-android@v3 # Use the latest stable version
168-
169- # 4. Install Haxe Dependencies (using your existing script)
170- - name : Install Haxe Dependencies
160+
161+ - name : 📱 Setup Android SDK
162+ uses : android-actions/setup-android@v3
163+
164+ - name : 🔧 Install Haxe Dependencies
171165 run : |
172166 haxelib setup ~/haxelib
173- # Install core libs needed before running setup script or lime commands
174- # (Ensure these are present even if list.haxelib also lists them)
175167 haxelib install hxcpp --quiet
176168 haxelib install lime --quiet
177169 haxelib install openfl --quiet
178- # Run the project's specific dependency script
179170 chmod +x ./setup/unix.sh
180171 ./setup/unix.sh
181-
182- # 5. Create Version Tag
183- - name : Create Version Tag
172+
173+ - name : Write Version File
184174 run : echo "${{ github.run_id }}" > VERSION
185-
186- # 6. Setup Lime for Android and Build
187- # Now that JDK/SDK/NDK are present, this should work
188- - name : Setup Lime and Build Android
189- # The setup-android action usually sets necessary env vars (like ANDROID_SDK_ROOT)
175+
176+ - name : Build Android APK
190177 run : |
191178 haxelib run lime setup android
192179 haxelib run lime build android --app-version="4.0.0-${{ github.run_id }}" $Args
193-
194- # 7. Upload Artifact
195- - name : Upload Artifact
180+
181+ - name : 📦 Upload APK Artifact
196182 uses : actions/upload-artifact@v4.3.4
197183 with :
198184 name : androidBuild
199- # Double-check this path is correct for your project's Android output
200185 path : export/release/android/bin
201-
186+
202187 buildiOS :
203- name : Build iOS
188+ name : Build iOS ( I hate this because it's a lot of trouble to set up )
204189 runs-on : macos-13
205190 needs : setup-haxe
191+ if : false
206192 steps :
207193 - name : Checkout Code
208194 uses : actions/checkout@v4.1.7
@@ -228,7 +214,7 @@ jobs:
228214 uses : actions/upload-artifact@v4.3.4
229215 with :
230216 name : iosSimulatorBuild
231- path : export/release/ios/build/Release-iphonesimulator/*.app
217+ path : export/release/ios/build/Release-iphonesimulator
232218
233219 notifyDiscord :
234220 name : 📣 Notify Discord
0 commit comments