-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: properly cache gradle #2150
Conversation
Blocked by: #2148 |
bbc41bf
to
a63a0c8
Compare
@szymonrybczak mind rebasing? |
a63a0c8
to
6b688b4
Compare
.github/workflows/test.yml
Outdated
@@ -49,12 +49,17 @@ jobs: | |||
runs-on: ${{ matrix.os }} | |||
steps: | |||
- uses: actions/checkout@v3 | |||
|
|||
- uses: actions/setup-java@v3 | |||
with: | |||
distribution: 'zulu' | |||
java-version: 17 | |||
cache: 'gradle' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should remove this line if you use gradle/gradle-build-action
await spawnScript( | ||
gradleWrapper, | ||
['wrapper', '--gradle-version=8.0.1', '--distribution-type', 'bin'], | ||
{ | ||
cwd: androidProjectRoot, | ||
}, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is necessary 🤔 I've been using gradle/gradle-build-action with several projects which have the -all
distribution and I haven't noticed re-downloads of Gradle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I gave it a try and it is getting re-downloaded :( See here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great thanks for clarifying
Summary:
Every time we're running
root.test.ts
it downloads Gradle. In template there's specified Gradle's-all
distribution, but withgradle/gradle-build-action
we can't specify it :( So we need to overwrite to-bin
.Test Plan:
CI should cache Gradle version.
Checklist