Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 24ef104

Browse files
committed
CHG | Add installation of required 32-bit dependencies for Android setup in GitHub Actions
1 parent a37fb3c commit 24ef104

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,27 @@ jobs:
141141
with:
142142
name: Version
143143

144+
# Install required dependencies first
145+
- name: Install Dependencies
146+
run: |
147+
sudo dpkg --add-architecture i386
148+
sudo apt-get update
149+
sudo apt-get install -y \
150+
build-essential \
151+
gcc-multilib \
152+
g++-multilib \
153+
libc6-dev \
154+
libc6-dev-i386 \
155+
linux-libc-dev:i386 \
156+
libstdc++6:i386 \
157+
libgcc1:i386 \
158+
zlib1g:i386 \
159+
libncurses5:i386 \
160+
libc++-dev \
161+
lib32stdc++6 \
162+
lib32gcc-s1 \
163+
lib32z1
164+
144165
- name: Setup Android NDK
145166
id: setup-ndk
146167
uses: nttld/setup-ndk@main
@@ -149,19 +170,16 @@ jobs:
149170

150171
- name: Setup Android SDK
151172
uses: android-actions/setup-android@v3
152-
153-
- run: sudo apt-get install -y build-essential libc++-dev
154-
- run: sudo apt-get install -y lib32stdc++6
155-
- run: sudo apt-get install -y lib32gcc-s1
156-
- run: sudo apt-get install -y lib32z1
157-
- run: sudo apt-get install -y lib32stdc++6
173+
with:
174+
cmdline-tools-version: latest
158175

159176
- name: Set Android Environment Variables
160177
run: |
161178
echo "ANDROID_HOME=$ANDROID_SDK_ROOT" >> $GITHUB_ENV
162179
echo "ANDROID_SDK=$ANDROID_SDK_ROOT" >> $GITHUB_ENV
163180
echo "ANDROID_NDK_HOME=${{ steps.setup-ndk.outputs.ndk-path }}" >> $GITHUB_ENV
164181
echo "ANDROID_NDK_ROOT=${{ steps.setup-ndk.outputs.ndk-path }}" >> $GITHUB_ENV
182+
echo "ANDROID_SDK_ROOT=$ANDROID_SDK_ROOT" >> $GITHUB_ENV
165183
166184
- name: Setup Java JDK
167185
uses: actions/setup-java@main
@@ -174,7 +192,14 @@ jobs:
174192
haxe-version: ${{ env.HAXE_VERSION }}
175193

176194
- name: Setup Haxe Dependencies
177-
run: bash ./ci/setup-haxe.sh
195+
run: |
196+
haxelib setup ~/haxelib
197+
haxelib install lime
198+
haxelib install openfl
199+
haxelib install flixel
200+
haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit.git
201+
haxelib run lime setup
202+
bash ./ci/setup-haxe.sh
178203
179204
- name: Setup Lime for Android
180205
run: |
@@ -184,6 +209,7 @@ jobs:
184209
185210
- name: Build Android
186211
run: |
212+
haxelib run lime rebuild hxcpp
187213
haxelib run lime rebuild android
188214
haxelib run lime build android --app-version="$(cat VERSION)" "$ARGS"
189215
@@ -194,7 +220,6 @@ jobs:
194220
with:
195221
name: Android Build
196222
path: HyperCodeEngine-Android.zip
197-
198223
buildiOS:
199224
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.Mobile == 'true' }}
200225
runs-on: macos-13

0 commit comments

Comments
 (0)