From 8d5f164caf623b1ea11cb0ff5b98dbd9d8a9889e Mon Sep 17 00:00:00 2001 From: garyschulte Date: Tue, 17 Sep 2024 13:28:12 -0700 Subject: [PATCH] additional CI env debug info Signed-off-by: garyschulte --- .github/workflows/build.yml | 9 +++++++++ constantine/build.gradle | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69c3eda..28e3107 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -352,10 +352,19 @@ jobs: distribution: adopt java-version: 21 cache: gradle + - name: Dump environment + run: | + echo $OSTYPE: ${OSTYPE%%[0-9.]*}-`arch` && echo 'System.out.println(System.getProperty("os.name")+"-"+System.getProperty("os.arch") + "\n" + System.getProperty("java.library.path"));' |jshell - + - name: Dump info on constantine libs + run: | + find . -name 'libconstantine*' |xargs -r file - name: gradle build uses: gradle/gradle-build-action@v2.4.2 with: arguments: --no-daemon --parallel build --scan + - name: Dump info on constantine libs + run: | + find . -name 'libconstantine*' |xargs -r file - uses: actions/upload-artifact@v3.1.0 with: name: jars diff --git a/constantine/build.gradle b/constantine/build.gradle index b5b1287..f301bd0 100644 --- a/constantine/build.gradle +++ b/constantine/build.gradle @@ -48,10 +48,16 @@ task linuxArm64LibCopy(type: Copy) { processResources.dependsOn macArmLibCopy, macLibCopy, linuxLibCopy, linuxArm64LibCopy +task printClasspath { + doLast { + println "Test classpath:" + tasks.test.classpath.each { println it } + } +} test { environment 'LD_LIBRARY_PATH', "${System.env.LD_LIBRARY_PATH}:build/resources/main/linux-gnu-x86_64" systemProperty 'jna.library.path', file('build/resources/main/linux-gnu-x86_64').absolutePath - dependsOn macArmLibCopy, macLibCopy, linuxLibCopy, linuxArm64LibCopy + dependsOn printClasspath, macArmLibCopy, macLibCopy, linuxLibCopy, linuxArm64LibCopy } jar {