Update actions

This commit is contained in:
LoveSy 2024-06-05 10:34:30 +08:00
parent c35a50a60f
commit da6b276f4d
No known key found for this signature in database
2 changed files with 20 additions and 1 deletions

View File

@ -32,11 +32,19 @@ jobs:
cache: 'gradle' cache: 'gradle'
- name: Setup Android SDK - name: Setup Android SDK
uses: android-actions/setup-android@v3 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 - name: ccache
uses: hendrikmuhs/ccache-action@v1 uses: hendrikmuhs/ccache-action@v1
with: with:
key: ${{ runner.os }}-${{ github.sha }} key: ${{ runner.os }}-${{ github.sha }}
restore-keys: ${{ runner.os }} restore-keys: ${{ runner.os }}
- name: Remove Android's cmake
shell: bash
run: rm -rf $ANDROID_HOME/cmake
- name: Build with Gradle - name: Build with Gradle
run: | run: |
ccache -o cache_dir=${{ github.workspace }}/.ccache ccache -o cache_dir=${{ github.workspace }}/.ccache
@ -161,6 +169,9 @@ jobs:
cache: 'gradle' cache: 'gradle'
- name: Setup Android SDK - name: Setup Android SDK
uses: android-actions/setup-android@v3 uses: android-actions/setup-android@v3
- uses: seanmiddleditch/gha-setup-ninja@master
with:
version: 1.12.0
- name: ccache - name: ccache
uses: hendrikmuhs/ccache-action@v1 uses: hendrikmuhs/ccache-action@v1
with: with:
@ -179,6 +190,7 @@ jobs:
arch: ${{ matrix.arch }} arch: ${{ matrix.arch }}
target: ${{ matrix.target }} target: ${{ matrix.target }}
script: | script: |
rm -rf $ANDROID_HOME/cmake
ccache -o cache_dir=${{ github.workspace }}/.ccache ccache -o cache_dir=${{ github.workspace }}/.ccache
ccache -o hash_dir=false ccache -o hash_dir=false
ccache -o compiler_check='%compiler% -dumpmachine; %compiler% -dumpversion' ccache -o compiler_check='%compiler% -dumpmachine; %compiler% -dumpversion'

View File

@ -22,8 +22,15 @@ jobs:
cache: 'gradle' cache: 'gradle'
- name: Setup Android SDK - name: Setup Android SDK
uses: android-actions/setup-android@v3 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 - name: Build with Gradle
run: ./gradlew :lsplant:publish run: |
rm -rf $ANDROID_HOME/cmake
./gradlew :lsplant:publish
env: env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.maven_pgp_signingKey }} ORG_GRADLE_PROJECT_signingKey: ${{ secrets.maven_pgp_signingKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.maven_pgp_signingPassword }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.maven_pgp_signingPassword }}