GHA: Add GDExtension Android libs to build workflow

This commit is contained in:
Serhii Snitsaruk 2024-06-20 19:20:53 +02:00
parent 8fa609ef9e
commit 4f1b22c668
No known key found for this signature in database
GPG Key ID: A965EF8799FFEC2D
1 changed files with 44 additions and 2 deletions

View File

@ -104,6 +104,34 @@ jobs:
arch: wasm32 arch: wasm32
should-build: true should-build: true
- name: 🤖 Android (arm64, release)
runner: ubuntu-20.04
platform: android
target: template_release
arch: arm64
should-build: true
- name: 🤖 Android (arm64, debug)
runner: ubuntu-20.04
platform: android
target: template_debug
arch: arm64
should-build: true
- name: 🤖 Android (x86_64, release)
runner: ubuntu-20.04
platform: android
target: template_release
arch: x86_64
should-build: true
- name: 🤖 Android (x86_64, debug)
runner: ubuntu-20.04
platform: android
target: template_debug
arch: x86_64
should-build: true
exclude: exclude:
- { opts: { should-build: false } } - { opts: { should-build: false } }
@ -166,13 +194,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 +260,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' || matrix.opts.arch != 'arm64')
run: | run: |
ls -l -R out/addons/limboai/bin/ ls -l -R out/addons/limboai/bin/
echo "---" echo "---"