Skip to content

Commit 06ff101

Browse files
author
Artem Zhiganov
committed
feature: ci/cd
Signed-off-by: Artem Zhiganov <a.zhiganov@mintmail.ru>
1 parent d2c8f6f commit 06ff101

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

‎.github/workflows/android.yml‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ "master", "develop" ]
6+
pull_request:
7+
branches: [ "master", "develop" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository with submodules
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
fetch-depth: 0
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
23+
- name: set up JDK 21
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: '21'
27+
distribution: 'temurin'
28+
cache: gradle
29+
30+
- name: Make all scripts executable
31+
run: |
32+
chmod +x gradlew
33+
chmod +x presentation/src/main/cpp/build.sh
34+
35+
- name: Build libvpx
36+
run: |
37+
echo "Setting up NDK for build.sh"
38+
export ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/27.0.12077973
39+
echo "ANDROID_NDK_HOME=$ANDROID_NDK_HOME"
40+
cd presentation/src/main/cpp
41+
./build.sh
42+
env:
43+
ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/27.0.12077973
44+
45+
- name: Build Debug APK (without GMS)
46+
run: ./gradlew assembleDebug
47+
48+
- name: Run Unit Tests
49+
run: ./gradlew testDebugUnitTest

0 commit comments

Comments
 (0)