-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
Run CI with GraalVM #2476
Open
stevenschlansker
wants to merge
9
commits into
master
Choose a base branch
from
graalvm-ci
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Run CI with GraalVM #2476
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
04cbc43
Run CI with GraalVM
stevenschlansker 63e2234
Add native plugin and profile to build pom
stevenschlansker 0749675
graalvm 21
stevenschlansker 1191002
native: enable metadata repository
stevenschlansker e14e9ce
native-agent: enable experimental predefined classes
stevenschlansker f91f790
temporarily always enable agent
stevenschlansker daf861e
TestPreparedBatchGenerateKeysPostgres: reduce dependency on current time
stevenschlansker 02c4799
XXX https://github.com/graalvm/native-build-tools/issues/562
stevenschlansker 9ae2ff5
Disable building native executable since Jdbi doesn't have a main
stevenschlansker File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: CI Build in GraalVM native-image with tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: 21 | ||
cache: maven | ||
|
||
- name: build | ||
env: | ||
MAVEN_CONFIG: "-Dbasepom.check.skip-enforcer=false -B -Djdbi.native=true" | ||
run: | | ||
make install |
Empty file.
Empty file.
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
Empty file.
Empty file.
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 |
---|---|---|
|
@@ -118,6 +118,7 @@ | |
<dep.plugin.javadoc.version>3.6.0</dep.plugin.javadoc.version> | ||
<dep.plugin.kotlin.version>1.9.22</dep.plugin.kotlin.version> | ||
<dep.plugin.ktlint.version>2.0.0</dep.plugin.ktlint.version> | ||
<dep.plugin.native.version>0.9.28</dep.plugin.native.version> | ||
<dep.plugin.sortpom.version>3.3.0</dep.plugin.sortpom.version> | ||
<dep.postgresql.version>42.7.1</dep.postgresql.version> | ||
<dep.slf4j.version>1.7.36</dep.slf4j.version> | ||
|
@@ -551,7 +552,8 @@ | |
<groupId>jakarta.annotation</groupId> | ||
<artifactId>jakarta.annotation-api</artifactId> | ||
<version>${dep.jakarta-annotation-api.version}</version> | ||
<scope>provided</scope> | ||
<!-- XXX https://github.com/graalvm/native-build-tools/issues/562 --> | ||
<!-- <scope>provided</scope> --> | ||
<optional>true</optional> | ||
</dependency> | ||
|
||
|
@@ -1198,7 +1200,57 @@ | |
</plugins> | ||
</build> | ||
</profile> | ||
|
||
<profile> | ||
<id>native</id> | ||
<activation> | ||
<property> | ||
<name>jdbi.native</name> | ||
</property> | ||
<file> | ||
<missing>.skip-native</missing> | ||
</file> | ||
</activation> | ||
<build> | ||
<pluginManagement> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should move outside the profile, into the pluginManagement section above. |
||
<plugins> | ||
<plugin> | ||
<groupId>org.graalvm.buildtools</groupId> | ||
<artifactId>native-maven-plugin</artifactId> | ||
<version>${dep.plugin.native.version}</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<metadataRepository> | ||
<enabled>true</enabled> | ||
</metadataRepository> | ||
<agent> | ||
<enabled>true</enabled> | ||
<!-- XXX Temporary --> | ||
<options> | ||
<enableExperimentalPredefinedClasses>true</enableExperimentalPredefinedClasses> | ||
</options> | ||
</agent> | ||
</configuration> | ||
<executions> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. those should stay here, move into the |
||
<execution> | ||
<id>test-native</id> | ||
<goals> | ||
<goal>test</goal> | ||
</goals> | ||
<phase>test</phase> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.graalvm.buildtools</groupId> | ||
<artifactId>native-maven-plugin</artifactId> | ||
<extensions>true</extensions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<!-- Profile to skip time-consuming steps. --> | ||
<id>fast</id> | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
all of the modules where this needs to be activated are packaging jars. can't we just use
and avoid more dotfiles?
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.
this actually does not work because maven only supports a single property for activation. sigh. maven is terrible.