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 {