Merge pull request #247 from onuralpszr/renovate/com.android.applicat… #436
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: | |
- main | |
pull_request: | |
branches: | |
- main | |
- dev | |
branch_protection_rule: | |
types: [created] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥 Checkout Source Code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | |
- name: 🛠️ Setup Android-OpenCV-SDK | |
run: ./setupOpenCV_4x.sh | |
- name: ☕ Set up JDK 17 | |
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
with: | |
distribution: temurin | |
java-version: 17.X | |
- name: 🧹 Run Android Lint | |
run: ./gradlew lint | |
- name: 🐞 Debug Build | |
run: ./gradlew assembleDebug | |
- name: 🚀 Release Build | |
run: ./gradlew build --no-daemon --console=plain | |
- name: 📤 Upload Debug APK | |
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
with: | |
name: debug apk | |
path: app/build/outputs/apk/debug/app-debug.apk |