Repository navigation
Add simple CI #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Android CI | |
| on: | |
| push: | |
| branches: [ "master", "develop" ] | |
| pull_request: | |
| branches: [ "master", "develop" ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository with submodules | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Make all scripts executable | |
| run: | | |
| chmod +x gradlew | |
| chmod +x presentation/src/main/cpp/build.sh | |
| - name: Build libvpx | |
| run: | | |
| export ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/27.0.12077973 | |
| cd presentation/src/main/cpp/ | |
| sh build.sh | |
| - name: Build Debug APK (without GMS) | |
| run: ./gradlew assembleDebug | |
| - name: Run Unit Tests | |
| run: ./gradlew testDebugUnitTest |