Skip to content

支持API 33新增的getPackageInfo方法 #80

支持API 33新增的getPackageInfo方法

支持API 33新增的getPackageInfo方法 #80

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