mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 03:11:18 +08:00
Update android.yml (#76)
* Update android.yml * Update android.yml Co-authored-by: 乌堆小透明 <lturtle2333@outlook.com>
This commit is contained in:
23
.github/workflows/android.yml
vendored
23
.github/workflows/android.yml
vendored
@@ -13,10 +13,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: set up JDK 11
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- name: set up JDK 17
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '11'
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: gradle
|
||||
- uses: actions/cache@v2
|
||||
@@ -32,24 +34,9 @@ jobs:
|
||||
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"
|
||||
|
||||
run: bash ./gradlew :app:packageDebug
|
||||
|
||||
Reference in New Issue
Block a user