mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-04 20:42:02 +08:00
Update actions
This commit is contained in:
parent
c35a50a60f
commit
da6b276f4d
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -32,11 +32,19 @@ jobs:
|
||||
cache: 'gradle'
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
- uses: seanmiddleditch/gha-setup-ninja@master
|
||||
with:
|
||||
version: 1.12.0
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
with:
|
||||
key: ${{ runner.os }}-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}
|
||||
- name: Remove Android's cmake
|
||||
shell: bash
|
||||
run: rm -rf $ANDROID_HOME/cmake
|
||||
- name: Build with Gradle
|
||||
run: |
|
||||
ccache -o cache_dir=${{ github.workspace }}/.ccache
|
||||
@ -161,6 +169,9 @@ jobs:
|
||||
cache: 'gradle'
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
- uses: seanmiddleditch/gha-setup-ninja@master
|
||||
with:
|
||||
version: 1.12.0
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
with:
|
||||
@ -179,6 +190,7 @@ jobs:
|
||||
arch: ${{ matrix.arch }}
|
||||
target: ${{ matrix.target }}
|
||||
script: |
|
||||
rm -rf $ANDROID_HOME/cmake
|
||||
ccache -o cache_dir=${{ github.workspace }}/.ccache
|
||||
ccache -o hash_dir=false
|
||||
ccache -o compiler_check='%compiler% -dumpmachine; %compiler% -dumpversion'
|
||||
|
9
.github/workflows/maven.yml
vendored
9
.github/workflows/maven.yml
vendored
@ -22,8 +22,15 @@ jobs:
|
||||
cache: 'gradle'
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
- uses: seanmiddleditch/gha-setup-ninja@master
|
||||
with:
|
||||
version: 1.12.0
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew :lsplant:publish
|
||||
run: |
|
||||
rm -rf $ANDROID_HOME/cmake
|
||||
./gradlew :lsplant:publish
|
||||
env:
|
||||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.maven_pgp_signingKey }}
|
||||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.maven_pgp_signingPassword }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user