-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
.cirrus.yml
101 lines (72 loc) · 2.4 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
env:
LEIN_ROOT: "true"
GRAALVM_VERSION: "22.3.1"
DTLV_ARCH: aarch64
GITHUB_TOKEN: ENCRYPTED[!41f1e85b6e586455cca18744e840eb478625b1e76bdf38741704b504929b3115f541f73101393835ca625e2e9db295a2!]
task:
name: Linux ARM64 Build
arm_container:
image: ubuntu:focal
memory: 8G
only_if: $CIRRUS_TAG != ''
# only_if: "changesInclude('.cirrus.yml', 'src/*', 'native/script/*')"
env:
DTLV_PLATFORM: linux
script: |
DEBIAN_FRONTEND=noninteractive apt-get update -y
DEBIAN_FRONTEND=noninteractive apt-get install -y curl git wget tar openjdk-11-jre-headless zlib1g-dev build-essential locales
locale-gen en_US en_US.UTF-8
dpkg-reconfigure locales
curl -O https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
chmod a+x lein
mv lein /usr/local/bin/
export JAVA_OPTS="-Xmx8g -XX:+UseG1GC"
lein run
cd native
script/install-graalvm
export GRAALVM_HOME=$(pwd)/graalvm-ce-java11-${GRAALVM_VERSION}
export JAVA_HOME=$GRAALVM_HOME
export PATH=$GRAALVM_HOME/bin:$PATH
export STATIC_EXCEPT_LIBC=true
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
script/compile
cd ..
native/dtlv-test0
cd native
apt-get install -y p7zip-full
export DTLV_ARCHIVE="dtlv-${CIRRUS_TAG}-ubuntu-latest-aarch64.zip"
export DTLV_TAG="${CIRRUS_TAG}"
7z a -tzip "$DTLV_ARCHIVE" dtlv
curl -sLO https://raw.githubusercontent.com/babashka/babashka/master/install
chmod +x install
./install
bb --config ../.build/bb.edn release-artifact
task:
name: macOS ARM64 Build
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
only_if: $CIRRUS_TAG != ''
# only_if: "changesInclude('.cirrus.yml', 'src/*', 'native/script/*')"
env:
DTLV_PLATFORM: macos
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