修复 createPackagePluginTask 任务在 Gradle 7.5 以后版本上添加失败和插件中 context.getDatabasePath(name) 方法当 name 传入全路径时运行异常的问题的问题 #77
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 |