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

fix(build): Update build and CI workflows #343

Merged
merged 13 commits into from
Aug 9, 2024

Conversation

matrei
Copy link
Contributor

@matrei matrei commented Apr 25, 2024

This PR updates the project build and CI workflows to a succeeding state.
It also adds generation of a OS X Arm CLI.

120 seconds is too short for running tests on my local machine
and now it timed out on Github actions as well.
@matrei matrei force-pushed the matrei/longer-test-timeout branch from 4ef9fb5 to e30c988 Compare April 25, 2024 08:22
@matrei matrei changed the title fix: Set longer timeout for tests test: Set longer timeout for tests Apr 25, 2024
CI fails with `Failed to download graalvm-ce-java11-darwin-aarch64-21.3.3.1. Are you sure version: '21.3.3.1' and java-version: '11' are correct?`.

This commit is an attempt to fix that.
CI fails building GraalVM native images. This commit is a first step
trying to fix this by updating the workflow files to latest standards:

- wrapper-validation
- gradle/actions/setup-gradle@v3 (with temurin)
- run ./gradlew instead of setup-gradle->with->arguments
- remove patch and minor release versions from imported actions
@matrei matrei marked this pull request as draft April 25, 2024 10:41
2 of 3 platforms compiled successfully with this version.
More changes seems to be needed to upgrade.
Reverting to it for now.
- Updated action versions
- Removed the wrapper validator as that is built into `gradle/actions/setup-gradle`
- Removed the version parameter to `graalvm/setup-graalvm` as this failed for OS X:
Error: Failed to download graalvm-ce-java11-darwin-aarch64-21.3.3.1.
Are you sure version: '21.3.3.1' and java-version: '11' are correct?
- Update to run on Java 17
- Update `setup-gradle` to v4
- `wrapper-validation` not needed as it is run by `setup-gradle`
- No token needed for `checkout`
- Use quotes and emojis for readability
- Remove redundant logic and steps from `release-notes.yml`
- Use multi-line run commands for readability
- Change git user and email to 'grails-build' account
- Update `stefanzweifel/git-auto-commit-action` to 5.0.1
- Use `musl` for Linux native image
- Change from `native-image` to `gradle nativeCompile`
- Add OS X Arm Native CLI
@matrei matrei force-pushed the matrei/longer-test-timeout branch 5 times, most recently from 426d566 to 316f477 Compare August 9, 2024 07:31
Add `org.graalvm.buildtools.native` Gradle plugin for nativeCompile task.
@matrei matrei force-pushed the matrei/longer-test-timeout branch from 316f477 to 223852f Compare August 9, 2024 07:43
@matrei matrei changed the title test: Set longer timeout for tests fix(build): Update build and CI workflows Aug 9, 2024
@matrei matrei marked this pull request as ready for review August 9, 2024 08:16
@matrei matrei requested a review from sdelamo August 9, 2024 08:28
- name: Set up JDK
uses: actions/[email protected]
- name: "☕️ Setup JDK"
uses: actions/setup-java@v4
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure about using @v4 instead of the exact version with @v4.2.1. I had seen issues with GitHub actions updating and breaking builds.

@sdelamo sdelamo merged commit ebccdcd into grails:6.2.x Aug 9, 2024
10 checks passed
@matrei matrei deleted the matrei/longer-test-timeout branch August 9, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants