From 735a94f8e766c0ca86b8e65c68e5be5362c410a8 Mon Sep 17 00:00:00 2001 From: Adrian Smith Date: Sun, 7 Jul 2024 17:36:38 -0700 Subject: [PATCH] more debug info. --- .github/workflows/mobiletest.yml | 19 +++++++++++-------- scripts/compile-shared | 4 +++- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/mobiletest.yml b/.github/workflows/mobiletest.yml index e2c8d08..110e965 100644 --- a/.github/workflows/mobiletest.yml +++ b/.github/workflows/mobiletest.yml @@ -19,14 +19,14 @@ jobs: # name: jar # path: . - - name: Cache GraalVM - uses: actions/cache@v1 - id: cache-graalvm-m1 - with: - path: ~/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final - key: ${{ runner.os }}-graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final - restore-keys: | - ${{ runner.os }}-graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final + # - name: Cache GraalVM + # uses: actions/cache@v1 + # id: cache-graalvm-m1 + # with: + # path: ~/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final + # key: ${{ runner.os }}-graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final + # restore-keys: | + # ${{ runner.os }}-graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final - name: Setup Clojure # You may pin to the exact commit or the version. @@ -76,6 +76,9 @@ jobs: - name: Build app run: | + export GRAALVM_HOME="$HOME/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final/Contents/Home" + export JAVA_HOME="$GRAALVM_HOME" + export PATH=$JAVA_HOME/bin:$PATH scripts/build-shared # - uses: actions/upload-artifact@v1 diff --git a/scripts/compile-shared b/scripts/compile-shared index 4a116be..4d65e41 100755 --- a/scripts/compile-shared +++ b/scripts/compile-shared @@ -51,13 +51,15 @@ $GRAALVM_HOME/bin/native-image \ # -J-Xmx20G \ # -J-XX:MaxDirectMemorySize=8G \ -df -h + rm -rf ./build/out mkdir -p build/out uname -m find ./tmp +df -h +clang --version find ./tmp -name 'bb.o' -exec cp {} build/out \; # find ./tmp -name 'grease-uber.o' -exec cp {} build/out \;