-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.cirrus.yml
34 lines (30 loc) · 1.2 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
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
task:
env:
GRAALVM_VERSION: "23"
GRAALVM_HOME: ${HOME}/graalvm-${GRAALVM_VERSION}/Contents/Home
TDN_PLATFORM: macos # used in release script
TDN_ARCH: aarch64
TDN_TEST_ENV: native
GITHUB_TOKEN: ENCRYPTED[7256124b628f01448e7233f5ea69bf531d61b527f87be1b46847d77f29823fbc78f077d2b8ab097f9793803abec9d0c3]
BABASHKA_PLATFORM: macos
BABASHKA_ARCH: aarch64
script: |
sudo script/install-clojure
bash -x script/install-graalvm
export PATH=$GRAALVM_HOME/bin:$PATH
ls -lahrt $GRAALVM_HOME
export JAVA_HOME=$GRAALVM_HOME
# sudo /usr/sbin/softwareupdate --install-rosetta --agree-to-license
java -version
bash <(curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install) --dir $(pwd) --dev-build
sudo mv bb /usr/local/bin
bb script/compile.clj
bb script/test.clj
VERSION=$(cat resources/META-INF/borkdude/tools-deps-native/version.txt)
archive="tools-deps-native-${VERSION}-${TDN_PLATFORM}-${TDN_ARCH:-amd64}.tar.gz"
tar zcvf "$archive" tools-deps-native
bb release-artifact "$archive" || true
binaries_artifacts:
path: "tools-deps-native-*.tar.gz"