This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (64 loc) · 2 KB
/
android-package.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
64
65
66
67
68
69
70
71
72
73
74
name: 🤖 Android Package
on:
workflow_call:
jobs:
android-package:
runs-on: "ubuntu-20.04"
name: ${{ matrix.opts.name }}
strategy:
fail-fast: false
matrix:
opts:
- name: Android Templates
artifact-name: android-templates
final-artifact-name: export-templates
steps:
- uses: actions/checkout@v3
- name: Checkout Godot
uses: actions/checkout@v3
with:
repository: godotengine/godot
ref: master
path: scripts/godot
- name: Download Artifact
id: download-artifact
uses: actions/download-artifact@v2
with:
name: ${{ matrix.opts.artifact-name }}
path: scripts/godot/platform/android/java/lib/libs
- name: Delete Artifact
uses: geekyeggo/delete-artifact@v2
with:
name: ${{ matrix.opts.artifact-name }}
- name: Set up Java 11
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- 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: Make apk (template)
working-directory: ./scripts/godot
run: |
cd platform/android/java
./gradlew generateGodotTemplates
cd ../../..
mkdir templates
cp bin/android_source.zip templates/android_source.zip
cp bin/android_debug.apk templates/android_debug.apk
cp bin/android_release.apk templates/android_release.apk
rm -rf bin/*
mv templates bin/templates
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.opts.final-artifact-name }}
path: scripts/godot/bin/*