File tree Expand file tree Collapse file tree 5 files changed +31
-26
lines changed Expand file tree Collapse file tree 5 files changed +31
-26
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,9 @@ workflows:
195195 context :
196196 - dockerhub-deploy
197197 - github-token
198+ filters :
199+ branches :
200+ only : main
198201 requires :
199202 - setup
200203 - format :
Original file line number Diff line number Diff line change 55 [clojure.string :as str]
66 [flatland.ordered.map :refer [ordered-map]]))
77
8- (def graalvm-version " 22 .0.2 " )
8+ (def graalvm-version " 24 .0.1 " )
99
1010(defn run
1111 ([cmd-name cmd]
Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ macos_instance:
22 image : ghcr.io/cirruslabs/macos-monterey-base:latest
33
44build-task :
5+ only_if : $CIRRUS_BRANCH == 'main'
6+ maven_cache :
7+ folder : ~/.m2
58 env :
69 DTHK_PLATFORM : macos
710 DTHK_ARCH : aarch64
811 INSTALL_DIR : ${HOME}
912 GRAALVM_VERSION : 22.0.2
1013 GRAALVM_SLUG : 9.1
1114 GRAALVM_HOME : ${HOME}/graalvm-community-openjdk-${GRAALVM_VERSION}+${GRAALVM_SLUG}/Contents/Home/
12- GITHUB_TOKEN : ENCRYPTED[0ea782cbbd99c2486b0f55b8eefcf91606a0805faaa3f35e55ecb75268b0046b874c856753f528ba689a9cdaa11e47c2 ]
15+ GITHUB_TOKEN : ENCRYPTED[!86a3791406be6ffc9490f464846ec5385908ae8d3d2a9eeb1457d529060816e14e9d7b88ecd190970add6a5d5d4e7b59! ]
1316 script : |
1417 set -euo pipefail
1518
@@ -44,13 +47,11 @@ build-task:
4447 bb ni-cli
4548
4649 # test
47- file dthk
4850 bb test native-image
4951 bb test bb-pod
5052
5153 # upload artifact
52- if [[ $CIRRUS_RELEASE == "" ]]; then
53- bb release native-cli
54- fi
54+ bb release native-image
55+
5556 binaries_artifacts :
5657 path : " dist/*"
Original file line number Diff line number Diff line change 77 paths-ignore :
88 - ' **/README.md'
99 - ' doc/**'
10- - ' .github/**'
1110 - ' .circleci/**'
1211 - ' bb/**'
1312 - ' dev/**'
@@ -20,42 +19,40 @@ jobs:
2019 strategy :
2120 matrix :
2221 include :
23- - os : macos-12
22+ - os : macos-13
2423 name : macos
2524 runs-on : ${{ matrix.os }}
2625 env :
2726 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28- GRAALVM_VERSION : 22 .0.2
27+ GRAALVM_VERSION : 24 .0.1
2928 DTHK_PLATFORM : macos
3029 DTHK_ARCH : amd64
3130 steps :
3231 - name : Git checkout
3332 uses : actions/checkout@v2
3433 with :
35- fetch-depth : 1
34+ fetch-depth : 0
3635 submodules : ' true'
3736
38- - name : Cache deps
39- uses : actions/cache@v2
40- id : cache-deps
37+ - name : Restore cache
38+ uses : actions/cache/restore@v4
39+ id : restore-cache
4140 with :
4241 path : ~/.m2/repository
43- key : ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
44- restore-keys : ${{ runner.os }}-maven-
42+ key : ${{ runner.os }}-maven-${{ hashFiles('deps.edn') }}
4543
4644 - name : Setup GraalVM
4745 uses : graalvm/setup-graalvm@v1
4846 with :
49- java-version : ' 22 '
47+ java-version : ' 24 '
5048 distribution : ' graalvm'
51- components : ' native-image'
5249 github-token : ${{ secrets.GITHUB_TOKEN }}
5350
5451 - name : Install clojure tools
5552 uses : DeLaGuardo/setup-clojure@5.0
5653 with :
57- cli : 1.10.3.1040
58- bb : 1.3.191
54+ cli : 1.12.1.1550
55+ bb : 1.12.204
5956
6057 - name : Build native image
6158 run : bb ni-cli
6663 bb test bb-pod
6764
6865 - name : Release native-image
69- run : bb release native-cli
66+ run : bb release native-image
67+
68+ - name : Save cache
69+ uses : actions/cache/save@v4
70+ id : save-cache
71+ with :
72+ path : ~/.m2/repository
73+ key : ${{ runner.os }}-maven-${{ hashFiles('deps.edn') }}
Original file line number Diff line number Diff line change 99 :developerConnection " scm:git:git@github.com:replikativ/datahike.git"
1010 :url " https://github.com/replikativ/datahike" }
1111
12- :build {:clj {; ; jvm build
13- :src-dirs [" src" ]
12+ :build {:clj {:src-dirs [" src" ]
1413 :resource-dir " resources"
1514 :java-src-dirs [" java" ]
1615 :target-dir " target"
1716 :class-dir " target/classes"
1817 :deps-file " deps.edn"
1918 :jar-pattern " {{repo.lib}}-{{version-str}}.jar"
2019 :lib io.replikativ/datahike}
21- :http-server-clj {; ; jvm build
22- :src-dirs [" src" " http-server" " resources" ]
20+ :http-server-clj {:src-dirs [" src" " http-server" " resources" ]
2321 :java-src-dirs [" java" ]
2422 :target-dir " target-http-server"
2523 :class-dir " target-http-server/classes"
2826 :aliases [:http-server ]
2927 :main datahike.http.server
3028 :lib io.replikativ/datahike-http-server}
31- :native {; ; jvm build
32- :src-dirs [" src" " libdatahike/src" ]
29+ :native {:src-dirs [" src" " libdatahike/src" ]
3330 :java-src-dirs [" java" ]
3431 :resource-dir " resources"
3532 :target-dir " target"
You can’t perform that action at this time.
0 commit comments