Fork me on GitHub
#graalvm
<
2024-01-30
>
ericdallo18:01:12

thank god!

💯 1
ericdallo18:01:55

I'll try that later on weekend

phronmophobic22:01:36

The (System/getProperty "os.arch") is showing up as x86_64 for me when I try it.

borkdude23:01:17

perhaps stuff is running in rosetta for you somehow, e.g. perhaps you downloaded the wrong graalvm dist?

phronmophobic23:01:45

I'm not using it for graalvm at the moment. I'm using it to build a c library

borkdude23:01:54

you could try to download bb for mac arm and run the same expression

borkdude23:01:58

perhaps setup-clojure isn't aware of the right architecture stuff yet

phronmophobic23:01:28

I'm wondering if specifying runs on macos-14 doesn't guarantee an M1 runner

borkdude23:01:56

it might, but the setup-clojure stuff perhaps downloads x64 binaries

phronmophobic23:01:00

I'll add uname -a and see what it prints

borkdude23:01:22

can you try downloading https://github.com/babashka/babashka/releases/download/v1.3.188/babashka-1.3.188-macos-aarch64.tar.gz and then running

./bb -e '(System/getProperty "os.arch")'

borkdude23:01:57

if that binary runs, then it must be an arm system

phronmophobic23:01:47

Run uname -a
Darwin Mac-1706654484619.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:25 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_VMAPPLE arm64

👍 1
phronmophobic23:01:39

I don't really have time to track this down, but my guess is that you're right about the setup-clojure action.

borkdude23:01:59

you could just manually download a jdk, it's not that hard

phronmophobic23:01:46

yea, I was just curious if it worked. I already have a working setup through other means.

borkdude23:01:55

oh sorry, I meant setup-java, not setup-clojure

phronmophobic23:01:56

I'll probably look into it eventually

phronmophobic23:01:30

ah yea: > Run actions/setup-java@v2 > with: > distribution: temurin > java-version: 17 > java-package: jdk > architecture: x64 > check-latest: false > server-id: github > server-username: GITHUB_ACTOR > server-password: GITHUB_TOKEN > overwrite-settings: true > job-status: success > env: > commit: ce54b814a8a10f4c0c32fee7aad9451231b63f75 > build_type: > Trying to resolve the latest version from remote > Resolved latest version as 17.0.10+7 > Trying to download... > Downloading Java 17.0.10+7 (Temurin-Hotspot) from https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.10%2B7/OpenJDK17U-jdk_x64_mac_hotspot_17.0.10_7.tar.gz ...

borkdude23:01:16

> `architecture: x64 you could try to change that

borkdude23:01:32

and/or try a different distribution, e.g. "oracle"

phronmophobic23:01:53

Just setting the architecture seemed to work.