-
Notifications
You must be signed in to change notification settings - Fork 2
/
.cirrus.yml
60 lines (51 loc) · 2.44 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
env:
LEIN_ROOT: "true"
CLOJARS_USERNAME: ENCRYPTED[!38aa86f130316e623511e9425d88bd2be2aaa109164328b2d0c90aea35ef0ebbc32a51e5ff5b805ec20ffe6cc6fe0723!]
CLOJARS_PASSWORD: ENCRYPTED[!c43d6967c24f7fd8bf1b02f58e11e285316b288785dd56cd58c08291c2047aa935bde02b1f366e292d85c57b038acf48!]
task:
arm_container:
image: ubuntu:focal
only_if: $CIRRUS_TAG != ''
# only_if: "changesInclude('linux-latest-aarch64/*', '.cirrus.yml')"
script: |
DEBIAN_FRONTEND=noninteractive apt-get update -y
DEBIAN_FRONTEND=noninteractive apt-get install -y curl git wget tar openjdk-11-jre-headless build-essential liblmdb-dev
git submodule init
git submodule update
curl -O https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
chmod a+x lein
mv lein /usr/local/bin/
script/build-linux-shared
mkdir -p ubuntu-latest-aarch64-shared/resources/dtlvnative/ubuntu-latest-aarch64-shared
cp src/lmdb/libraries/liblmdb/liblmdb.so ubuntu-latest-aarch64-shared/resources/dtlvnative/ubuntu-latest-aarch64-shared/
cd ubuntu-latest-aarch64-shared
lein deploy clojars
cd ..
script/build
cp src/*.a ubuntu-latest-aarch64/resources/dtlvnative/ubuntu-latest-aarch64/
cp src/dtlv.h ubuntu-latest-aarch64/resources/dtlvnative/ubuntu-latest-aarch64/
cp src/lmdb/libraries/liblmdb/lmdb.h ubuntu-latest-aarch64/resources/dtlvnative/ubuntu-latest-aarch64/lmdb/libraries/liblmdb/
cd ubuntu-latest-aarch64
lein deploy clojars
task:
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
only_if: $CIRRUS_TAG != ''
# only_if: "changesInclude('macos-latest-aarch64/*', 'macos-latest-aarch64-shared/*', '.cirrus.yml')"
script: |
git submodule init
git submodule update
brew install leiningen
script/build-macos-shared
ls -l src/lmdb/libraries/liblmdb
mkdir -p macos-latest-aarch64-shared/resources/dtlvnative/macos-latest-aarch64-shared
cp src/lmdb/libraries/liblmdb/liblmdb.dylib macos-latest-aarch64-shared/resources/dtlvnative/macos-latest-aarch64-shared/
cd macos-latest-aarch64-shared
lein deploy clojars
cd ..
script/build
cp src/*.a macos-latest-aarch64/resources/dtlvnative/macos-latest-aarch64/
cp src/dtlv.h macos-latest-aarch64/resources/dtlvnative/macos-latest-aarch64/
cp src/lmdb/libraries/liblmdb/lmdb.h macos-latest-aarch64/resources/dtlvnative/macos-latest-aarch64/lmdb/libraries/liblmdb/
cd macos-latest-aarch64
lein deploy clojars