/
.cirrus.yml
41 lines (29 loc) · 996 Bytes
/
.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
41
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
task:
only_if: $CIRRUS_TAG != ''
# only_if: "changesInclude('.cirrus.yml', 'src/*', 'native/script/*')"
env:
LEIN_ROOT: "true"
GRAALVM_VERSION: "22.3.1"
DTLV_PLATFORM: macos
DTLV_ARCH: aarch64
GITHUB_TOKEN: ENCRYPTED[!41f1e85b6e586455cca18744e840eb478625b1e76bdf38741704b504929b3115f541f73101393835ca625e2e9db295a2!]
script: |
brew install leiningen
lein run
cd native
script/install-graalvm
export GRAALVM_HOME=$(pwd)/graalvm-ce-java11-${GRAALVM_VERSION}/Contents/Home
export JAVA_HOME=$GRAALVM_HOME
export PATH=$GRAALVM_HOME/bin:$PATH
script/compile
cd ..
native/dtlv-test0
cd native
brew install p7zip
export DTLV_ARCHIVE="dtlv-${CIRRUS_TAG}-macos-latest-aarch64.zip"
export DTLV_TAG="${CIRRUS_TAG}"
7z a -tzip "$DTLV_ARCHIVE" dtlv
brew install borkdude/brew/babashka
bb --config ../.build/bb.edn release-artifact