File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 outputs :
1717 matrix : ${{ steps.gen.outputs.matrix }}
1818 steps :
19- - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
19+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2020 - uses : turtlequeue/setup-babashka@d78ec6570aea3b614bc695cafcceb82eb45c2af9 # v1.8.0
2121 with :
2222 babashka-version : 1.12.218
3535 fail-fast : false
3636 matrix : ${{ fromJson(needs.prepare.outputs.matrix) }}
3737 steps :
38- - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
38+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3939
4040 - name : Install build dependencies (cached)
4141 uses : awalsh128/cache-apt-pkgs-action@681749ae568c81c2037cb9185e38b709b261bd2f # v1.6.1
6363 needs : build
6464 runs-on : ubuntu-24.04
6565 steps :
66- - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
66+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
6767
6868 - uses : turtlequeue/setup-babashka@d78ec6570aea3b614bc695cafcceb82eb45c2af9 # v1.8.0
6969 with :
Original file line number Diff line number Diff line change 1010 clj-kondo :
1111 runs-on : ubuntu-24.04
1212 steps :
13- - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
13+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1414 - uses : DeLaGuardo/clojure-lint-action@2d6013175031096ae07bc9b90a07173029ad7dc9 # master
1515 with :
1616 clj-kondo-args : --lint src
1717 check-name : clj-kondo
1818 github_token : ${{ secrets.GITHUB_TOKEN }}
19+
20+ actionlint :
21+ runs-on : ubuntu-24.04
22+ steps :
23+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
24+ - name : Check workflow files
25+ run : |
26+ bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
27+ ./actionlint -color
28+ shell : bash
29+
30+ format :
31+ runs-on : ubuntu-24.04
32+ steps :
33+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
34+ - uses : turtlequeue/setup-babashka@d78ec6570aea3b614bc695cafcceb82eb45c2af9 # v1.8.0
35+ with :
36+ babashka-version : 1.12.218
37+ - name : Check formatting (zprint)
38+ run : bb fmt check
Original file line number Diff line number Diff line change 1- # Build scratch / staged artifacts
2- /out /
3- /work /
4- * .tar.xz
5- * .tar.gz
6- # Local actionlint binary
7- /actionlint
8- # Controller scratch (progress ledger)
9- /.superpowers /
1+ pom.xml
2+ pom.xml.asc
3+ * .jar
4+ * .class
5+ /lib /
6+ /classes /
7+ /target /
8+ /checkouts /
9+ .lein-deps-sum
10+ .lein-repl-history
11+ .lein-plugins /
12+ .lein-failures
13+ .nrepl-port
14+ .cpcache /
15+
16+ .hgignore
17+ .hg /
18+ /.prepl-port
19+ /checkouts
20+ profiles.clj
21+ .idea /
22+ /.lein- *
23+ .idea /
24+ * .iml
25+ .vscode
26+ .lsp /*
27+ .clj-kondo /*
28+ ! .clj-kondo /config.edn
29+ .calva /*
30+
31+ /.shadow-cljs /
32+ node_modules /
Original file line number Diff line number Diff line change 22
33Firecracker-bootable Linux kernel builds, published as GitHub Releases, used as
44the default images in [ Hyper] ( https://github.com/harmont-dev/hyper ) .
5+
6+ Hyper allows you to provide your own ` vmlinux ` images. It is, however,
7+ convenient, not to have to worry about providing your ` vmlinux ` images, so by
8+ default, Hyper will fetch images from the [ Github Releases of this
9+ repo] ( https://github.com/harmont-dev/hyper-vmlinux/releases ) . These are all
10+ checksummed in Hyper's implementation to mitigate the risk of a supply chain
11+ attack.
Original file line number Diff line number Diff line change 1010
1111 release
1212 {:requires ([vmlinux.tasks.release :as release])
13- :task (apply release/-main *command-line-args*)}}}
13+ :task (apply release/-main *command-line-args*)}
14+
15+ fmt
16+ {:requires ([vmlinux.tasks.fmt :as fmt])
17+ :task (apply fmt/-main *command-line-args*)}}}
Original file line number Diff line number Diff line change 1+ (ns vmlinux.tasks.fmt
2+ (:require [babashka.deps :as deps]
3+ [babashka.fs :as fs]))
4+
5+ (def ^:private opts {:width 100 , :style :community })
6+
7+ (defn- sources [] (map str (fs/glob " ." " {src/**/*.clj,manifest.clj}" )))
8+
9+ (defn -main
10+ [& args]
11+ (deps/add-deps '{:deps {zprint/zprint {:mvn/version " 1.2.9" }}})
12+ (let [zprint (requiring-resolve 'zprint.core/zprint-file-str)
13+ reformat (fn [f] (zprint (slurp f) f opts))]
14+ (if (= " check" (first args))
15+ (let [bad (filterv (fn [f] (not= (slurp f) (reformat f))) (sources ))]
16+ (when (seq bad) (run! (fn [f] (println " needs formatting:" f)) bad) (System/exit 1 ))
17+ (println " format OK" ))
18+ (doseq [f (sources )] (spit f (reformat f))))))
You can’t perform that action at this time.
0 commit comments