graalvm

borkdude 2024-01-30T18:51:23.338989Z

cc @ericdallo

ericdallo 2024-01-30T18:57:12.098989Z

thank god!

💯 1
ericdallo 2024-01-30T18:57:55.061449Z

I'll try that later on weekend

phronmophobic 2024-01-30T22:59:36.227019Z

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

borkdude 2024-01-30T23:00:17.512659Z

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

phronmophobic 2024-01-30T23:00:45.586729Z

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

borkdude 2024-01-30T23:00:54.626259Z

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

borkdude 2024-01-30T23:02:58.299759Z

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

phronmophobic 2024-01-30T23:03:28.890699Z

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

borkdude 2024-01-30T23:03:56.603589Z

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

phronmophobic 2024-01-30T23:04:00.325759Z

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

phronmophobic 2024-01-30T23:04:05.473079Z

that's true

borkdude 2024-01-30T23:04:22.203579Z

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")'

borkdude 2024-01-30T23:04:57.387009Z

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

phronmophobic 2024-01-30T23:07:47.425499Z

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
phronmophobic 2024-01-30T23:08:39.126639Z

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

borkdude 2024-01-30T23:08:59.495399Z

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

phronmophobic 2024-01-30T23:09:46.811629Z

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

borkdude 2024-01-30T23:09:55.925909Z

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

phronmophobic 2024-01-30T23:09:56.418769Z

I'll probably look into it eventually

phronmophobic 2024-01-30T23:10:43.706319Z

Thanks!

👍 1
phronmophobic 2024-01-30T23:11:30.073029Z

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 ...

borkdude 2024-01-30T23:12:16.434329Z

> `architecture: x64 you could try to change that

borkdude 2024-01-30T23:12:32.928679Z

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

phronmophobic 2024-01-30T23:16:53.506059Z

Just setting the architecture seemed to work.

phronmophobic 2024-01-30T23:16:57.617409Z

gratitude

🎉 1
borkdude 2024-01-31T14:00:33.322759Z

you could use setup-graalvm (which is also a JDK) https://github.com/marketplace/actions/github-action-for-graalvm it's reported to work with m1 here: https://twitter.com/fniephaus/status/1752683638523658617