Skip to content

Commit b91477a

Browse files
committed
build: Bump third-party versions, update maintenance docs
* Update third-party depencency versions in Cargo.toml, regenerate BUCK file * Create build.sh for verifying correctness of generated BUCK file * Update dependency version format to "x.y" (exactly one dot, separating major and minor version) * Update 'libsqlite3-sys' to use bundled sqlite3 dylib (newer than system-installed one) Signed-off-by: Yuxuan Dai <[email protected]>
1 parent fe3afeb commit b91477a

File tree

10 files changed

+1254
-1604
lines changed

10 files changed

+1254
-1604
lines changed

build.sh

+27-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
11
#!/usr/bin/bash
2-
set -ex
2+
set -euxo pipefail
33

4-
# Build a target and copy the artifact to a destination
5-
build_and_copy() {
6-
local target="$1"
7-
local dest="$2"
8-
local output=$(buck2 build "$target" --show-output | awk '{print $2}')
9-
cp "$output" "$dest"
10-
}
4+
# 'crates-pro' libs
5+
buck2 build //project/crates-pro:analysis
6+
buck2 build //project/crates-pro:data_transporter
7+
buck2 build //project/crates-pro:model
8+
buck2 build //project/crates-pro:repo_import
9+
buck2 build //project/crates-pro:search
10+
buck2 build //project/crates-pro:tudriver
11+
# 'crates-pro' bins
12+
buck2 build //project/crates-pro:crates_pro
13+
buck2 build //project/crates-pro/tuplugins:plugin1
14+
buck2 build //project/crates-pro/tuplugins:plugin2
1115

12-
# Clean up and prepare the destination directories
13-
rm -rf build/crates-pro
14-
mkdir -p build/crates-pro
16+
# 'performance-benchmark' libs
17+
buck2 build //project/performance-benchmark:collector-lib
18+
# 'performance-benchmark' bins
19+
buck2 build //project/performance-benchmark:collector
20+
buck2 build //project/performance-benchmark:flamegraph-fake
21+
buck2 build //project/performance-benchmark:muti-rustc-perf
22+
buck2 build //project/performance-benchmark:runtime-fake
23+
buck2 build //project/performance-benchmark:rustc-fake
24+
buck2 build //project/performance-benchmark:manager
1525

16-
# crates-pro executables
17-
build_and_copy "//project/crates-pro:crates_pro" "build/crates-pro/crates_pro"
18-
# crates-pro runtime dependencies
19-
cp project/crates-pro/.env build/crates-pro
26+
# 'sensleak-rs' libs
27+
buck2 build //project/sensleak-rs:sensleak
28+
# 'sensleak-rs' bins
29+
buck2 build //project/sensleak-rs:api
30+
buck2 build //project/sensleak-rs:scan
2031

21-
cp images/Dockerfile.crates-pro build
32+
echo 'done'

0 commit comments

Comments
 (0)