mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 19:31:17 +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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: set up JDK 11
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
|
- name: set up JDK 17
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
@@ -32,24 +34,9 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
~/.gradle/caches/build-cache-*
|
~/.gradle/caches/build-cache-*
|
||||||
key: gradle-builds-${{ github.sha }}
|
key: gradle-builds-${{ github.sha }}
|
||||||
|
|
||||||
- name: Init Submodule
|
- name: Init Submodule
|
||||||
run: |
|
run: |
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: bash ./gradlew assemble
|
run: bash ./gradlew :app:packageDebug
|
||||||
|
|
||||||
- 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"
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user