mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-04-05 02:52:50 +08:00
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: Android CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'README_EN.md'
|
|
- 'doc/*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: set up JDK 11
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'temurin'
|
|
cache: gradle
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
!~/.gradle/caches/build-cache-*
|
|
key: gradle-deps-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
restore-keys: gradle-deps
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.gradle/caches/build-cache-*
|
|
key: gradle-builds-${{ github.sha }}
|
|
|
|
- name: Init Submodule
|
|
run: |
|
|
git submodule init
|
|
git submodule update
|
|
|
|
- name: Build with Gradle
|
|
run: bash ./gradlew assemble
|
|
|
|
- name: Upload Release APK
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: SimplicityTools_Release
|
|
path: "app/build/outputs/apk/release/*.apk"
|
|
|
|
- name: Upload Debug APK
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Simplicity Tools_Debug
|
|
path: "app/build/outputs/apk/debug/*.apk"
|
|
|