2022-05-11 08:31:18 +00:00
|
|
|
name: Android CI
|
|
|
|
|
|
|
|
on:
|
2022-05-18 09:35:08 +00:00
|
|
|
workflow_dispatch:
|
2022-05-11 08:31:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
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: 'adopt'
|
|
|
|
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
|
|
|
|
|
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
|
|
|
- name: Build with Gradle
|
|
|
|
run: |
|
|
|
|
bash ./gradlew assembleRelease
|
|
|
|
|
|
|
|
- name: Upload Release APK
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: GenshinProxy_release
|
2022-05-18 09:42:14 +00:00
|
|
|
path: ./app/build/outputs/apk/release
|