-
Notifications
You must be signed in to change notification settings - Fork 18
63 lines (54 loc) · 1.78 KB
/
android_builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 🤖 Android
on:
pull_request:
branches:
- '*'
push:
branches:
- 'gd3'
env:
GOOST_BASE_BRANCH: gd3
SCONSFLAGS: godot_modules_enabled=no platform=android verbose=yes warnings=all werror=yes debug_symbols=no --jobs=4
SCONS_CACHE_LIMIT: 8192
jobs:
android-template:
runs-on: "ubuntu-20.04"
name: Template (target=release, tools=no)
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Load .scons_cache directory
id: android-template-cache
uses: actions/cache@v2
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{github.job}}-${{env.GOOST_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{github.job}}-${{env.GOOST_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{github.job}}-${{env.GOOST_BASE_BRANCH}}-${{github.ref}}
${{github.job}}-${{env.GOOST_BASE_BRANCH}}
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Configuring Python packages
run: |
python -c "import sys; print(sys.version)"
python -m pip install scons
python --version
scons --version
- name: Compilation
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
ANDROID_NDK_ROOT: /usr/local/lib/android/sdk/ndk-bundle
run: |
scons target=release tools=no android_arch=armv7
scons target=release tools=no android_arch=arm64v8
cd godot/platform/android/java
./gradlew generateGodotTemplates
cd ../../../..
ls -l godot/bin/