cc @ericdallo
thank god!
I'll try that later on weekend
The (System/getProperty "os.arch") is showing up as x86_64 for me when I try it.
perhaps stuff is running in rosetta for you somehow, e.g. perhaps you downloaded the wrong graalvm dist?
I'm not using it for graalvm at the moment. I'm using it to build a c library
you could try to download bb for mac arm and run the same expression
https://github.com/phronmophobic/cljonda/blob/main/.github/workflows/deploy_usearch.yml
perhaps setup-clojure isn't aware of the right architecture stuff yet
I'm wondering if specifying runs on macos-14 doesn't guarantee an M1 runner
it might, but the setup-clojure stuff perhaps downloads x64 binaries
I'll add uname -a and see what it prints
that's true
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")'if that binary runs, then it must be an arm system
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 arm64I don't really have time to track this down, but my guess is that you're right about the setup-clojure action.
you could just manually download a jdk, it's not that hard
yea, I was just curious if it worked. I already have a working setup through other means.
oh sorry, I meant setup-java, not setup-clojure
I'll probably look into it eventually
Thanks!
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 ...
> `architecture: x64 you could try to change that
and/or try a different distribution, e.g. "oracle"
Just setting the architecture seemed to work.
gratitude
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