-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core.transform): ShadowTransform声明为支持build cache
由于ShadowTransform只处理输入的文件,并且处理时逻辑固定。在输入文件不变的情况下,输出文件总是可替代的。所以直接声明isCacheable为true就可以使用构建缓存。 同时开启Github Action上的缓存机制,加快构建。
- Loading branch information
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,14 @@ jobs: | |
steps: | ||
- 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: buildSdk | ||
run: ./gradlew wrapper; ./gradlew buildSdk | ||
- name: lintSdk | ||
|
@@ -30,6 +38,8 @@ jobs: | |
arch: x86_64 | ||
profile: pixel_xl | ||
script: ./gradlew wrapper; ./gradlew androidTestSdk | ||
- name: stop gradle deamon for actions/cache | ||
run: ./gradlew --stop | ||
publish: | ||
needs: build-and-test | ||
runs-on: macos-latest | ||
|
@@ -42,5 +52,15 @@ jobs: | |
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: publish | ||
run: ./gradlew wrapper; ./gradlew publish | ||
- name: stop gradle deamon for actions/cache | ||
run: ./gradlew --stop |
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
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