fix(core.gradle-plugin): 替换在AGP 8.0+中被去掉的接口调用 #78
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gradle-plugin-agp-compat-test | |
on: | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'projects/sdk/core/gradle-plugin/**' | |
- 'projects/sdk/core/manifest-parser/**' | |
- 'projects/sdk/core/transform/**' | |
- 'projects/sdk/core/transform-kit/**' | |
- 'projects/sdk/coding/**' | |
- 'projects/test/gradle-plugin-agp-compat-test/**' | |
jobs: | |
gradle-plugin-agp-compat-test: | |
runs-on: ubuntu-latest | |
env: | |
DISABLE_TENCENT_MAVEN_MIRROR: true | |
steps: | |
- name: Inject slug/short variables | |
uses: rlespinasse/[email protected] | |
- name: checkout | |
uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: revert gradle wrapper mirror setting | |
run: echo 'distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip' > gradle/wrapper/gradle-wrapper.properties | |
- name: revert gradle wrapper mirror setting | |
working-directory: projects/test/gradle-plugin-agp-compat-test | |
run: echo 'distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip' > gradle/wrapper/gradle-wrapper.properties | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: test AGP compatibility when core.gradle-plugin changed with JDK17 | |
working-directory: projects/test/gradle-plugin-agp-compat-test | |
run: ./test_JDK17.sh | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: 'gradle' | |
- name: test AGP compatibility when core.gradle-plugin changed with JDK11 | |
working-directory: projects/test/gradle-plugin-agp-compat-test | |
run: ./test_JDK11.sh | |
- name: stop gradle deamon for actions/cache | |
run: ./gradlew --stop |