3232 steps :
3333 - uses : actions/checkout@v4
3434 - name : Docker Step
35- run : " docker run -di --name emscripten -v $PWD:/src emscripten/emsdk:3.1.74 bash"
35+ run : " docker run -di --name emscripten -v $PWD:/src emscripten/emsdk:4.0.4 bash"
3636 # - name: Determine Release
3737 # id: vars
3838 # shell: bash
@@ -77,11 +77,11 @@ jobs:
7777 run : gcc -v
7878 - uses : actions/checkout@v4
7979 - name : ccache
80- uses : hendrikmuhs/ccache-action@v1.2.14
80+ uses : hendrikmuhs/ccache-action@v1.2.17
8181 with :
8282 # key: ${{ matrix.os }}-${{ matrix.type }}
8383 key : ${{ matrix.msystem }}
84- - uses : msys2/setup-msys2@v2.24.1
84+ - uses : msys2/setup-msys2@v2.27.0
8585 with :
8686 cache : true
8787 release : true
@@ -125,7 +125,7 @@ jobs:
125125 steps :
126126 - name : Clone repository
127127 uses : actions/checkout@v4
128- - uses : msys2/setup-msys2@v2.24.1
128+ - uses : msys2/setup-msys2@v2.27.0
129129 with :
130130 update : true
131131 install : >-
@@ -171,8 +171,8 @@ jobs:
171171 steps :
172172 - name : Clone repository
173173 uses : actions/checkout@v4
174-
175- - uses : msys2/setup-msys2@v2.24.1
174+
175+ - uses : msys2/setup-msys2@v2.27.0
176176 with :
177177 update : true
178178 install : >-
@@ -182,7 +182,7 @@ jobs:
182182 - name : Setup MSBuild (VS2019 - 16.11)
183183 uses : microsoft/setup-msbuild@v2
184184 with :
185- vs-version : ' 16.11'
185+ vs-version : " 16.11"
186186 msbuild-architecture : x64
187187
188188 - name : Verify MSBuild Version
@@ -216,7 +216,6 @@ jobs:
216216 # msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=debug /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142
217217 # msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142
218218
219-
220219 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
221220
222221 rpi-build :
@@ -254,7 +253,7 @@ jobs:
254253 version : 1.0
255254 - uses : actions/checkout@v4
256255 - name : ccache
257- uses : hendrikmuhs/ccache-action@v1.2.14
256+ uses : hendrikmuhs/ccache-action@v1.2.17
258257 with :
259258 key : ${{ matrix.cfg.libs }}
260259 # - name: Determine Release
@@ -294,7 +293,7 @@ jobs:
294293 steps :
295294 - uses : actions/checkout@v4
296295 - name : ccache
297- uses : hendrikmuhs/ccache-action@v1.2.14
296+ uses : hendrikmuhs/ccache-action@v1.2.17
298297 with :
299298 key : ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}
300299 # - name: Determine Release
@@ -331,10 +330,11 @@ jobs:
331330 env :
332331 TARGET : ${{matrix.cfg.target}}
333332 steps :
334- - name : Remove Old lib-unwind
335- run : if [ "$TARGET" = "linux64" ]; then
336- sudo apt-get remove libunwind-14 -y;
337- fi
333+ # handled by the install script now
334+ # - name: Remove Old lib-unwind
335+ # run: if [ "$TARGET" = "linux64" ]; then
336+ # sudo apt-get remove libunwind-14 -y;
337+ # fi
338338 - name : Cache Packages
339339 uses : awalsh128/cache-apt-pkgs-action@latest
340340 with :
@@ -355,7 +355,7 @@ jobs:
355355 # fi
356356 - uses : actions/checkout@v4
357357 - name : ccache
358- uses : hendrikmuhs/ccache-action@v1.2.14
358+ uses : hendrikmuhs/ccache-action@v1.2.17
359359 with :
360360 key : ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}
361361
@@ -394,7 +394,7 @@ jobs:
394394
395395 # - uses: actions/checkout@v4
396396 # - name: ccache
397- # uses: hendrikmuhs/ccache-action@v1.2.14
397+ # uses: hendrikmuhs/ccache-action@v1.2.17
398398 # with:
399399 # key: ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}
400400
@@ -422,7 +422,7 @@ jobs:
422422 steps :
423423 - uses : actions/checkout@v4
424424 - name : ccache
425- uses : hendrikmuhs/ccache-action@v1.2.14
425+ uses : hendrikmuhs/ccache-action@v1.2.17
426426 with :
427427 key : ${{ matrix.cfg.target }}-${{ matrix.cfg.opt }}
428428
@@ -452,4 +452,54 @@ jobs:
452452 env :
453453 DEVELOPER_DIR : " /Applications/Xcode.app/Contents/Developer"
454454 SDKROOT : " /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
455- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
455+
456+ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
457+ build-android :
458+ runs-on : ubuntu-24.04
459+ strategy :
460+ matrix :
461+ cfg :
462+ - { target: android, opt: arm64-v8a }
463+ - { target: android, opt: x86_64 }
464+ - { target: android, opt: armeabi-v7a }
465+
466+ env :
467+ TARGET : ${{ matrix.cfg.target }}
468+ ARCH : ${{ matrix.cfg.opt }}
469+ ANDROID_SDK_ROOT : $ANDROID_HOME
470+ ANDROID_NDK_ROOT : $ANDROID_NDK_LATEST_HOME
471+
472+ steps :
473+ - name : checkout openFrameworks
474+ uses : actions/checkout@v4
475+
476+ - name : Set Up JDK 17
477+ uses : actions/setup-java@v3
478+ with :
479+ distribution : " temurin"
480+ java-version : " 17"
481+
482+ - name : Download Libraries
483+ run : ./of update libs android
484+
485+ - name : Build openFrameworks Core - Debug
486+ run : |
487+ cd libs/openFrameworksCompiled/project/android/
488+ gradle wrapper
489+ chmod +x gradlew
490+ ./gradlew assembleDebug
491+
492+ - name : Build openFrameworks Core - CMake
493+ run : |
494+ cd libs/openFrameworksCompiled/project/android/
495+ ./cmake.sh ${ARCH}
496+
497+ - name : Check if openFrameworks output Exists
498+ run : |
499+ LIB_PATH="libs/openFrameworksCompiled/lib/android/${ARCH}/libopenFrameworksAndroid.so"
500+ if [ -f "$LIB_PATH" ]; then
501+ echo "Build Success - [$LIB_PATH]"
502+ else
503+ echo "ERROR: Build Failed not found: [$LIB_PATH]"
504+ exit 1
505+ fi
0 commit comments