Skip to content

Commit 4c8dd4d

Browse files
author
Yucong Sun
committed
Try to install libra_dev into system directory
1 parent bb8d780 commit 4c8dd4d

File tree

4 files changed

+28
-15
lines changed

4 files changed

+28
-15
lines changed

.circleci/config.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.1
33
executors:
44
build-executor:
55
docker:
6-
- image: circleci/rust:stretch
6+
- image: circleci/rust:buster
77
resource_class: 2xlarge
88

99
jobs:
@@ -14,13 +14,22 @@ jobs:
1414
- run:
1515
name: Setup
1616
command: |
17-
sudo sh -c 'echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/backports.list'
18-
sudo apt-get update
19-
sudo apt-get -t stretch-backports install cmake python3-dev python3-venv clang llvm libjemalloc-dev
17+
sudo apt-get update && sudo apt-get upgrade -y
18+
sudo apt-get install cmake python3-dev python3-venv clang llvm libjemalloc-dev librocksdb-dev
2019
- run:
21-
name: Build everything
20+
name: Build libra-dev
2221
command: |
2322
./build.sh
23+
- run:
24+
name: Install libra-dev
25+
command: |
26+
sudo cp libra-dev/target/debug/liblibra_dev.so /usr/lib
27+
- run:
28+
name: Test C++ client
29+
command: |
30+
cd cpp
31+
./build.sh
32+
./test.sh
2433
- run:
2534
name: Test Rust Client
2635
command: |

build.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,3 @@ cd ..
1111
cd rust
1212
cargo build
1313
cd ..
14-
15-
# C Stuff
16-
rm -rf build
17-
mkdir build
18-
cd build
19-
cmake ..
20-
make VERBOSE=1
21-
# Test!
22-
./cpp/cpp-client
23-
cd ..

cpp/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# C Stuff
5+
rm -rf build
6+
mkdir build
7+
cd build || exit
8+
cmake ..
9+
make VERBOSE=1

cpp/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# Test!
5+
./build/cpp/cpp-client

0 commit comments

Comments
 (0)