Skip to content

update workflow

update workflow #805

Workflow file for this run

name: Android CI
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: set up JDK 8.0.422+5
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8.0.422+5'
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v4
- name: Make gradlew executable
run: chmod +x ./gradlew
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build
- name: Build with Gradle (Unit tests)
run: ./gradlew testRelease
- name: Build with Gradle (lintVitalRelease)
run: ./gradlew lintVitalRelease
- name: Upload artifacts (debug apk)
uses: actions/upload-artifact@v4
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk
- name: Upload artifacts (lint results)
uses: actions/upload-artifact@v4
with:
name: lint-results.html
path: app/build/reports/lint-results.html