Skip to content
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

Change more Gradle config and GitHub Actions workflows #2544

Merged
merged 1 commit into from Oct 3, 2021

Conversation

JavierSegoviaCordoba
Copy link
Member

  • Migrate more files to kts
  • Use Version Catalogs in all projects
  • Rename some Gradle properties in multiple gradle.properties files
  • Change and improve GitHub Actions workflows

echo "$(cat gradle.properties | grep projects.version | cut -d'=' -f2) MingwX64 deployed!"

- name: Stop Gradle daemons
run: ./gradlew --stop
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was to fix the cache issue? Is there any link you can reference? Curious about the technical details :p

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it was a workaround in the issue filed in the Cache repo, this one actions/cache#454.

Not sure why, I guess the daemon blocks the access to those folders and then it fails, similar what you get in local when you run a lot of Gradle tasks over the same project.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update @JavierSegoviaCordoba!

@@ -26,6 +26,12 @@ pluginManagement {
}

dependencyResolutionManagement {
versionCatalogs {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

Copy link
Member

@nomisRev nomisRev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👏 👏 amazing work @JavierSegoviaCordoba thank you!!

@nomisRev nomisRev requested review from raulraja and a team October 3, 2021 09:57
@nomisRev
Copy link
Member

nomisRev commented Oct 3, 2021

@JavierSegoviaCordoba looking at the Github Actions times, it looks like we can collapse the split between macos_and_ios and tv_and_watchos. I think all those targets will still be faster than ktlint & Dokka. The limit for free macos jobs is 5, so this would allow more PRs to run in parallel.

Screenshot 2021-10-03 at 11 57 49

Copy link
Member

@raulraja raulraja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @JavierSegoviaCordoba , looks great!

- Migrate more files to `kts`
- Use Version Catalogs in all projects
- Rename some Gradle properties in multiple `gradle.properties` files
- Change and improve GitHub Actions workflows
@JavierSegoviaCordoba
Copy link
Member Author

@JavierSegoviaCordoba looking at the Github Actions times, it looks like we can collapse the split between macos_and_ios and tv_and_watchos. I think all those targets will still be faster than ktlint & Dokka. The limit for free macos jobs is 5, so this would allow more PRs to run in parallel.

Screenshot 2021-10-03 at 11 57 49

Changed to run all apple targets in the same job

@nomisRev nomisRev merged commit 9b9b7e2 into main Oct 3, 2021
@nomisRev nomisRev deleted the add-gradle-config branch October 3, 2021 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants