-
Notifications
You must be signed in to change notification settings - Fork 82
49 lines (39 loc) · 1.16 KB
/
build-android.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
name: Android build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- name: "ARM32"
arch: "armeabi-v7a"
- name: "ARM64"
arch: "arm64-v8a"
name: Linux -> Android-${{ matrix.name }}
steps:
- name: Clean Disk
uses: DiligentGraphics/github-action/clean-disk-ubuntu@v1
- name: Checkout
uses: DiligentGraphics/github-action/checkout@v1
- name: Create CMake
if: success()
shell: bash
run: |
cd $GITHUB_WORKSPACE/DiligentSamples/BuildTools/Scripts/github_actions
chmod +x create_cmake.sh
./create_cmake.sh "$GITHUB_WORKSPACE"
- name: Set up build environment
if: success()
uses: DiligentGraphics/github-action/setup-build-env@v1
with:
platform: Android
- name: Build with Gradle
if: success()
env:
ANDROID_ARCH: ${{ matrix.arch }}
run: |
cd $GITHUB_WORKSPACE/DiligentSamples/Android
chmod +x gradlew
./gradlew buildRelease
echo -e "\nRemaining disk space: $(df -BG / | awk 'NR==2 {print $4}' | sed 's/G//') GB"