Merge pull request #147 from limbonaut/gha-gdext-android

GHA: Build Android platform libs in GDExtension workflow
This commit is contained in:
Serhii Snitsaruk 2024-06-21 11:38:31 +02:00 committed by GitHub
commit 2356e6c967
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 80 additions and 6 deletions

View File

@ -95,14 +95,70 @@ jobs:
platform: web platform: web
target: template_release target: template_release
arch: wasm32 arch: wasm32
should-build: true should-build: ${{ !inputs.test-build }}
- name: 🌐 Web (wasm32, debug) - name: 🌐 Web (wasm32, debug)
runner: ubuntu-20.04 runner: ubuntu-20.04
platform: web platform: web
target: template_debug target: template_debug
arch: wasm32 arch: wasm32
should-build: true should-build: ${{ !inputs.test-build }}
- name: 🤖 Android (arm64, release)
runner: ubuntu-20.04
platform: android
target: template_release
arch: arm64
should-build: ${{ !inputs.test-build }}
- name: 🤖 Android (arm64, debug)
runner: ubuntu-20.04
platform: android
target: template_debug
arch: arm64
should-build: ${{ !inputs.test-build }}
- name: 🤖 Android (arm32, release)
runner: ubuntu-20.04
platform: android
target: template_release
arch: arm32
should-build: ${{ !inputs.test-build }}
- name: 🤖 Android (arm32, debug)
runner: ubuntu-20.04
platform: android
target: template_debug
arch: arm32
should-build: ${{ !inputs.test-build }}
- name: 🤖 Android (x86_64, release)
runner: ubuntu-20.04
platform: android
target: template_release
arch: x86_64
should-build: ${{ !inputs.test-build }}
- name: 🤖 Android (x86_64, debug)
runner: ubuntu-20.04
platform: android
target: template_debug
arch: x86_64
should-build: ${{ !inputs.test-build }}
- name: 🤖 Android (x86_32, release)
runner: ubuntu-20.04
platform: android
target: template_release
arch: x86_32
should-build: ${{ !inputs.test-build }}
- name: 🤖 Android (x86_32, debug)
runner: ubuntu-20.04
platform: android
target: template_debug
arch: x86_32
should-build: ${{ !inputs.test-build }}
exclude: exclude:
- { opts: { should-build: false } } - { opts: { should-build: false } }
@ -166,13 +222,27 @@ jobs:
emcc -v emcc -v
- name: Set up scons - name: Set up scons
if: matrix.opts.platform == 'windows' || matrix.opts.platform == 'macos' || matrix.opts.platform == 'web' if: matrix.opts.platform != 'linux'
run: | run: |
python -c "import sys; print(sys.version)" python -c "import sys; print(sys.version)"
python -m pip install scons==4.4.0 python -m pip install scons==4.4.0
python --version python --version
scons --version scons --version
- name: Set up Java 17
if: matrix.opts.platform == 'android'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: nttld/setup-ndk@v1
if: matrix.opts.platform == 'android'
id: setup-ndk
with:
ndk-version: r23c
link-to-sdk: true
- name: Set up MSVC problem matcher on Windows - name: Set up MSVC problem matcher on Windows
if: matrix.opts.platform == 'windows' if: matrix.opts.platform == 'windows'
uses: ammaraskar/msvc-problem-matcher@master uses: ammaraskar/msvc-problem-matcher@master
@ -218,7 +288,7 @@ jobs:
ls -R out/ ls -R out/
- name: Strip lib - name: Strip lib
if: matrix.opts.platform != 'windows' && matrix.opts.platform != 'web' if: matrix.opts.platform != 'windows' && matrix.opts.platform != 'web' && (matrix.opts.platform != 'android' || startsWith(matrix.opts.arch, 'x86'))
run: | run: |
ls -l -R out/addons/limboai/bin/ ls -l -R out/addons/limboai/bin/
echo "---" echo "---"

View File

@ -17,10 +17,14 @@ linux.debug.arm64 = "res://addons/limboai/bin/liblimboai.linux.editor.arm64.so"
linux.release.arm64 = "res://addons/limboai/bin/liblimboai.linux.template_release.arm64.so" linux.release.arm64 = "res://addons/limboai/bin/liblimboai.linux.template_release.arm64.so"
linux.debug.rv64 = "res://addons/limboai/bin/liblimboai.linux.editor.rv64.so" linux.debug.rv64 = "res://addons/limboai/bin/liblimboai.linux.editor.rv64.so"
linux.release.rv64 = "res://addons/limboai/bin/liblimboai.linux.template_release.rv64.so" linux.release.rv64 = "res://addons/limboai/bin/liblimboai.linux.template_release.rv64.so"
android.debug.x86_64 = "res://addons/limboai/bin/liblimboai.android.template_debug.x86_64.so"
android.release.x86_64 = "res://addons/limboai/bin/liblimboai.android.template_release.x86_64.so"
android.debug.arm64 = "res://addons/limboai/bin/liblimboai.android.template_debug.arm64.so" android.debug.arm64 = "res://addons/limboai/bin/liblimboai.android.template_debug.arm64.so"
android.release.arm64 = "res://addons/limboai/bin/liblimboai.android.template_release.arm64.so" android.release.arm64 = "res://addons/limboai/bin/liblimboai.android.template_release.arm64.so"
android.debug.arm32 = "res://addons/limboai/bin/liblimboai.android.template_debug.arm32.so"
android.release.arm32 = "res://addons/limboai/bin/liblimboai.android.template_release.arm32.so"
android.debug.x86_64 = "res://addons/limboai/bin/liblimboai.android.template_debug.x86_64.so"
android.release.x86_64 = "res://addons/limboai/bin/liblimboai.android.template_release.x86_64.so"
android.debug.x86_32 = "res://addons/limboai/bin/liblimboai.android.template_debug.x86_32.so"
android.release.x86_32 = "res://addons/limboai/bin/liblimboai.android.template_release.x86_32.so"
web.debug.wasm32 = "res://addons/limboai/bin/liblimboai.web.template_debug.wasm32.wasm" web.debug.wasm32 = "res://addons/limboai/bin/liblimboai.web.template_debug.wasm32.wasm"
web.release.wasm32 = "res://addons/limboai/bin/liblimboai.web.template_release.wasm32.wasm" web.release.wasm32 = "res://addons/limboai/bin/liblimboai.web.template_release.wasm32.wasm"