Skip to content

Commit

Permalink
additional CI env debug info
Browse files Browse the repository at this point in the history
Signed-off-by: garyschulte <garyschulte@gmail.com>
  • Loading branch information
garyschulte committed Sep 17, 2024
1 parent 61cee6a commit 8d5f164
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion constantine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8d5f164

Please sign in to comment.