-
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (37 loc) · 1.16 KB
/
checks.yml
File metadata and controls
46 lines (37 loc) · 1.16 KB
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
name: Android Build Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
BUILD_TYPE: Release
ANDROID_PLATFORM: android-21
ANDROID_NDK: ${{ github.workspace }}/android-ndk
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Java (required for some Android tools)
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Install Android NDK
run: |
sudo apt-get update
sudo apt-get install -y unzip wget
NDK_VERSION=r26c
wget https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux.zip
unzip android-ndk-${NDK_VERSION}-linux.zip -d ${{ github.workspace }}
mv ${{ github.workspace }}/android-ndk-${NDK_VERSION} $ANDROID_NDK
- name: Install CMake & Ninja
run: |
sudo apt-get install -y cmake ninja-build
- name: Make build script executable
run: chmod +x build.sh
- name: Run full build
run: ./build.sh all