Skip to content

chore(deps): update actions/cache digest to 9255dc7 #503

chore(deps): update actions/cache digest to 9255dc7

chore(deps): update actions/cache digest to 9255dc7 #503

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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: actions/cache@ffd11d22fee05d47b0b50eb8e4722f24e2bb6005 # 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@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.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@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: debug apk
path: app/build/outputs/apk/debug/app-debug.apk