mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-04 20:42:02 +08:00
Update workflow
This commit is contained in:
parent
2c1fba450b
commit
ace0c08a9b
86
.github/workflows/build.yml
vendored
86
.github/workflows/build.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
java-version: '17'
|
||||
cache: 'gradle'
|
||||
- name: Cache Gradle Build
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches/build-cache-*
|
||||
@ -59,55 +59,6 @@ jobs:
|
||||
name: ${{ matrix.os }}-library
|
||||
path: ~/.m2
|
||||
|
||||
agp-test:
|
||||
needs: build
|
||||
name: Test using AGP
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '17'
|
||||
cache: 'gradle'
|
||||
- name: Cache Gradle Build
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches/build-cache-*
|
||||
~/.gradle/buildOutputCleanup/cache.properties
|
||||
key: gradle-builds-core-${{ github.sha }}
|
||||
restore-keys: |
|
||||
gradle-builds-${{ runner.os }}
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
key: ${{ runner.os }}-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}
|
||||
save: false
|
||||
- name: Test with Gradle
|
||||
run: |
|
||||
ccache -o cache_dir=${{ github.workspace }}/.ccache
|
||||
ccache -o hash_dir=false
|
||||
ccache -o compiler_check='%compiler% -dumpmachine; %compiler% -dumpversion'
|
||||
echo -e "84831b9409646a918e30573bab4c9c91346d8abd" > $ANDROID_SDK_ROOT/licenses/android-sdk-preview-license
|
||||
echo 'android.testoptions.manageddevices.emulator.gpu=swiftshader_indirect' >> gradle.properties
|
||||
echo 'android.native.buildOutput=verbose' >> gradle.properties
|
||||
echo 'android.sdk.channel=3' >> gradle.properties
|
||||
sudo rm -R /Applications/Xcode*
|
||||
./gradlew :test:allDevicesDebugAndroidTest
|
||||
rm -v test/build/outputs/androidTest-results/managedDevice/*/testlog/adb.additional_test_output*
|
||||
- name: Upload outputs
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: test-outputs
|
||||
path: test/build/outputs
|
||||
|
||||
test:
|
||||
needs: build
|
||||
name: Test on API ${{ matrix.api-level }} ${{ matrix.arch }}
|
||||
@ -152,9 +103,42 @@ jobs:
|
||||
- api-level: 26
|
||||
target: default
|
||||
arch: x86
|
||||
- api-level: 27
|
||||
target: default
|
||||
arch: x86_64
|
||||
- api-level: 27
|
||||
target: default
|
||||
arch: x86
|
||||
- api-level: 28
|
||||
target: default
|
||||
arch: x86_64
|
||||
- api-level: 28
|
||||
target: default
|
||||
arch: x86
|
||||
- api-level: 29
|
||||
target: default
|
||||
arch: x86_64
|
||||
- api-level: 29
|
||||
target: default
|
||||
arch: x86
|
||||
- api-level: 30
|
||||
target: default
|
||||
arch: x86_64
|
||||
- api-level: 30
|
||||
target: google_apis
|
||||
arch: x86
|
||||
- api-level: 31
|
||||
target: default
|
||||
arch: x86_64
|
||||
- api-level: 31
|
||||
target: android-tv
|
||||
arch: x86
|
||||
- api-level: 32
|
||||
target: google_apis
|
||||
arch: x86_64
|
||||
- api-level: 33
|
||||
target: google_apis
|
||||
arch: x86_64
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
@ -167,7 +151,7 @@ jobs:
|
||||
java-version: '17'
|
||||
cache: 'gradle'
|
||||
- name: Cache Gradle Build
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches/build-cache-*
|
||||
|
Loading…
x
Reference in New Issue
Block a user