chore: bump aar #41
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: CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| JAVA_VERSION: "17" | |
| # Ядро качается из релизов free-turn-proxy; токен - против anonymous rate limit API | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| test: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ env.JAVA_VERSION }} | |
| - uses: gradle/actions/setup-gradle@v4 | |
| # Версия ядра - пин в gradle.properties, качается на preBuild (без aar не собирается | |
| # даже compile: биндинг gomobile лежит в нём). | |
| - name: Run unit tests | |
| run: | | |
| chmod +x gradlew | |
| ./gradlew :app:test | |
| - name: Upload test reports | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-reports | |
| path: app/build/reports/tests/ | |
| retention-days: 7 | |
| build: | |
| name: Debug build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ env.JAVA_VERSION }} | |
| - uses: gradle/actions/setup-gradle@v4 | |
| - name: Assemble debug APKs | |
| run: | | |
| chmod +x gradlew | |
| ./gradlew :app:assembleDebug | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: debug-apks | |
| path: app/build/outputs/apk/debug/*.apk | |
| retention-days: 7 |