|
| 1 | +name: 🤖 Android Builds |
| 2 | +'on': |
| 3 | +- push |
| 4 | +- pull_request |
| 5 | +env: |
| 6 | + GODOT_BASE_BRANCH: 3.4.4-stable |
| 7 | + SCONSFLAGS: ' verbose=yes debug_symbols=no' |
| 8 | +concurrency: |
| 9 | + group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-android |
| 10 | + cancel-in-progress: true |
| 11 | +jobs: |
| 12 | + android-template: |
| 13 | + runs-on: ubuntu-20.04 |
| 14 | + name: Template (target=release, tools=no) |
| 15 | + steps: |
| 16 | + - name: Checkout Godot |
| 17 | + uses: actions/checkout@v2 |
| 18 | + with: |
| 19 | + repository: godotengine/godot |
| 20 | + ref: ${{ env.GODOT_BASE_BRANCH }} |
| 21 | + - name: Checkout ECMAScript |
| 22 | + uses: actions/checkout@v2 |
| 23 | + with: |
| 24 | + path: ${{github.workspace}}/modules/ECMAScript/ |
| 25 | + - name: Make apt sources.list use the default Ubuntu repositories |
| 26 | + run: | |
| 27 | + sudo rm -f /etc/apt/sources.list.d/* |
| 28 | + sudo cp -f misc/ci/sources.list /etc/apt/sources.list |
| 29 | + sudo apt-get update |
| 30 | + - name: Set up Java 11 |
| 31 | + uses: actions/setup-java@v1 |
| 32 | + with: |
| 33 | + java-version: 11 |
| 34 | + - name: Setup Godot build cache |
| 35 | + uses: ./.github/actions/godot-cache |
| 36 | + continue-on-error: true |
| 37 | + - name: Setup python and scons |
| 38 | + uses: ./modules/ECMAScript/.github/actions/godot-deps |
| 39 | + with: |
| 40 | + shell: sh |
| 41 | + - name: Compilation (armv7) |
| 42 | + uses: ./modules/ECMAScript/.github/actions/godot-build |
| 43 | + with: |
| 44 | + sconsflags: ${{ env.SCONSFLAGS }} android_arch=armv7 |
| 45 | + platform: android |
| 46 | + target: release |
| 47 | + tools: false |
| 48 | + shell: sh |
| 49 | + - name: Compilation (arm64v8) |
| 50 | + uses: ./modules/ECMAScript/.github/actions/godot-build |
| 51 | + with: |
| 52 | + sconsflags: ${{ env.SCONSFLAGS }} android_arch=arm64v8 |
| 53 | + platform: android |
| 54 | + target: release |
| 55 | + tools: false |
| 56 | + shell: sh |
| 57 | + - name: Generate Godot templates |
| 58 | + run: | |
| 59 | + cd platform/android/java |
| 60 | + ./gradlew generateGodotTemplates |
| 61 | + cd ../../.. |
| 62 | + ls -l bin/ |
| 63 | + - name: Upload artifact |
| 64 | + uses: ./.github/actions/upload-artifact |
0 commit comments