Bump com.android.tools.build:gradle from 7.2.1 to 8.5.1 #111
Workflow file for this run
This file contains 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: Minimal Android CI Workflow | |
permissions: | |
contents: 'write' | |
id-token: 'write' | |
on: | |
push: | |
jobs: | |
test: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- name: Run Tests | |
run: ./gradlew test --stacktrace | |
apk: | |
name: Generate APK | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- name: Generate APKs | |
run: ./gradlew clean assembleDebug assembleRelease | |
- name: Upload APKs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apk | |
path: app/build/outputs/apk/**/*.apk | |
release: | |
name: Release APK | |
needs: apk | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Download APK from build | |
uses: actions/download-artifact@v4 | |
with: | |
name: apk | |
- name: Upload APKs | |
if: startsWith(github.ref, 'refs/tags/') | |
id: upload_release_asset | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
debug/app-debug.apk | |
release/app-release-unsigned.apk | |