Skip to content

Commit

Permalink
debug github actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gubaer committed Jan 25, 2025
1 parent f4b5e20 commit fd3b6d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ jobs:
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "8.12"
gradle-properties: |
plugin.josmCompileVersion=${{ matrix.josm-version}}
graalvm.jdk=jdk${{ matrix.jdk }}
graalvm.platform=${{ env.GRAALVM_PLATFORM }}
arguments: --stacktrace --info

- name: Build with Gradle
run: |
./gradlew build --stacktrace --info
-Pplugin.josmCompileVersion=${{ matrix.josm-version}}
-Pgraalvm.jdk=jdk${{ matrix.jdk }}
-Pgraalvm.platform=${{ env.GRAALVM_PLATFORM }}
run: ./gradlew build
env:
DISPLAY: ":19"
OSM_DEV_API_PASSWORD: "${{ secrets.OSM_DEV_API_PASSWORD }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ abstract class GraalVMDownloadTask extends DefaultTask {
GraalVMJDK getConfiguredGraalVMJDK() {
if (graalVMJDK.isPresent()) {
final value = graalVMJDK.get()
logger.info("graalVMJDK is set as task property, value='${value}'")
if (value == null) {
throw new GradleException("Property 'graalVMJDK' in task '${this.name}' must not be null")
} else if (value instanceof GraalVMJDK) {
Expand All @@ -142,6 +143,7 @@ abstract class GraalVMDownloadTask extends DefaultTask {
return jdk
}
}
logger.info("graalVMJDK is not set as task property")
if (project.hasProperty(PROP_JDK)) {
final value = project.property(PROP_JDK)
logger.info("Project has property ${PROP_JDK}, value is '${value}'")
Expand Down

0 comments on commit fd3b6d6

Please sign in to comment.