Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Oct 18, 2024
1 parent 53daa94 commit 35d979e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions script/circle_ci.clj
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@
graal (conj (format "export GRAALVM_HOME=\"%s\"" java-home))))]
(println "writing to:" dest-file)
(doseq [p env-entries]
(do
(println p) ;; nice for debugging locally and on circleci
(when on-ci
(spit dest-file (format "%s\n" p) :append true)))) )))
(println p) ;; nice for debugging locally and on circleci
(when on-ci
(spit dest-file (format "%s\n" p) :append true))) )))

(defn- parse-jdk
"Disco distro for graal includes the major.jdk ex graalvm_ce19, so we don't have client respecify it."
Expand Down Expand Up @@ -171,13 +170,12 @@
:direct_download_uri)
;; => "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jdk_aarch64_mac_hotspot_11.0.23_9.tar.gz"

(-> (jdk-info {:os "macos"
(-> (jdk-info {:os "linux"
:arch "amd64"
:jdk-major "11"
:jdk-major "17"
:distro "temurin"
:archive-type "tar.gz"})
(select-keys [:architecture :operating_system]))
;; => {:architecture "x64", :operating_system "macos"}
:direct_download_uri)



Expand All @@ -204,7 +202,7 @@
(install-jdk* {:os "macos" :arch "x64" :distro-jdk-major "temurin@11"})
(install-jdk* {:os "macos" :arch "arm64" :distro-jdk-major "temurin@11"})
(install-jdk* {:os "windows" :arch "x64" :distro-jdk-major "temurin@17"})
(install-jdk* {:os "linux" :arch "x64" :distro-jdk-major "temurin@11"})
(install-jdk* {:os "linux" :arch "x64" :distro-jdk-major "temurin@17"})

(install-jdk* {:os "linux" :arch "x64" :distro-jdk-major "graalvm@21"} )
(install-jdk* {:os "linux" :arch "x64" :distro-jdk-major "graalvm_community@21"} )
Expand Down

0 comments on commit 35d979e

Please sign in to comment.