forked from clj-kondo/clj-kondo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
40 lines (33 loc) · 1.29 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
task:
env:
LEIN_ROOT: "true"
GRAALVM_VERSION: "22.3.0"
GRAALVM_HOME: ${HOME}/graalvm-ce-java11-22.3.0/Contents/Home
CLJ_KONDO_PLATFORM: macos # used in release script
CLJ_KONDO_ARCH: aarch64
CLJ_KONDO_TEST_ENV: native
GITHUB_TOKEN: ENCRYPTED[a616fae871722a21c7dfbabdf4c226f4601dc31dab23d594c7a448760a0af4b195f252d3528f688c7899a3efa672a101]
script: |
sudo .circleci/script/install-clojure /usr/local
sudo bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)
sudo .circleci/script/install-leiningen
pushd ~
if ! [ -d graalvm-ce-java11-22.3.0 ]; then
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java11-darwin-aarch64-22.3.0.tar.gz
tar xzf graalvm-ce-java11-darwin-aarch64-22.3.0.tar.gz
fi
popd
export PATH=$GRAALVM_HOME/bin:$PATH
export JAVA_HOME=$GRAALVM_HOME
java -version
script/compile
script/test
VERSION=$(cat resources/CLJ_KONDO_VERSION)
arch=${CLJ_KONDO_ARCH:-amd64}
archive="clj-kondo-$VERSION-$CLJ_KONDO_PLATFORM-$arch.zip"
zip "$archive" clj-kondo
bb release-artifact "$archive" || true
binaries_artifacts:
path: "clj-kondo-*.zip"