-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI build times were extremely ridiculous; now, they are only somewhat ridiculous. * ci: optimize downloading clojure deps Do the work from build.clj to avoid repeated JVM launch costs. * ci: only install planck if job requires it Planck can take a while to install on CI Linux, so only install it if necessary. * lint fix: unsorted namespace * ci yaml fixes * ci: fix oopsie in libs tests typo resulted in running ALL libs test for each invidual lib job * ci: only npm if required by unit test Sometimes `npm ci` is zippy on ci, sometimes not. Skip it if not needed by particular unit test. * ci: run against all clj versions in a single job Clojure tests now hit all supported versions of Clojure in a single job. This reduces number of GitHub Actions jobs which will reduce job queuing which will reduce overall ci build time.
- Loading branch information
Showing
7 changed files
with
58 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
(ns download-deps | ||
(:require [babashka.tasks :as t] | ||
[clojure.edn :as edn] | ||
[lread.status-line :as status])) | ||
(:require [babashka.tasks :as t])) | ||
|
||
;; clojure has a -P command, but to bring down all deps we need to specify all aliases | ||
;; bb deps will be brought down just from running bb (which assumedly is how this code is run) | ||
|
||
(defn -main [& _args] | ||
(let [aliases (->> "deps.edn" | ||
slurp | ||
edn/read-string | ||
:aliases | ||
keys)] | ||
;; one at a time because aliases with :replace-deps will... well... you know. | ||
(status/line :detail "Bring down default deps") | ||
(t/clojure "-P") | ||
(doseq [a (sort aliases)] | ||
(status/line :detail "Bring down deps for alias: %s" a) | ||
(t/clojure "-P" (str "-M" a))))) | ||
;; do all the work from build.clj to avoid repeated JVM launch costs | ||
(t/clojure "-T:build download-deps")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters