Skip to content

Commit

Permalink
upgrade example depend to 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Jun 18, 2024
1 parent d7cdd75 commit 1c73ae4
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 26 deletions.
2 changes: 0 additions & 2 deletions example/anyflow/.bazeliskrc

This file was deleted.

2 changes: 1 addition & 1 deletion example/anyflow/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
common --registry=https://bcr.bazel.build
common --registry=https://baidu.github.io/babylon/registry
common --registry=https://raw.githubusercontent.com/bazelboost/registry/main
common --registry=https://bcr.bazel.build

build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
1 change: 1 addition & 0 deletions example/anyflow/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.1.2
2 changes: 1 addition & 1 deletion example/anyflow/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bazel_dep(name = 'babylon', version = '1.1.6')
bazel_dep(name = 'babylon', version = '1.2.0')
2 changes: 0 additions & 2 deletions example/depend-use-bzlmod/.bazeliskrc

This file was deleted.

2 changes: 1 addition & 1 deletion example/depend-use-bzlmod/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
common --registry=https://bcr.bazel.build
common --registry=https://baidu.github.io/babylon/registry
common --registry=https://raw.githubusercontent.com/bazelboost/registry/main
common --registry=https://bcr.bazel.build

build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
1 change: 1 addition & 0 deletions example/depend-use-bzlmod/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.1.2
2 changes: 1 addition & 1 deletion example/depend-use-bzlmod/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bazel_dep(name = 'babylon', version = '1.1.6')
bazel_dep(name = 'babylon', version = '1.2.0')
4 changes: 2 additions & 2 deletions example/depend-use-cmake-fetch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set(BUILD_DEPS ON)
include(FetchContent)
FetchContent_Declare(
babylon
URL "https://github.com/baidu/babylon/archive/refs/tags/v1.1.6.tar.gz"
URL_HASH SHA256=a5bbc29f55819c90e00b40f9b5d2716d5f0232a158d69c530d8c7bac5bd794b6
URL "https://github.com/baidu/babylon/archive/refs/tags/v1.2.0.tar.gz"
URL_HASH SHA256=7e83e5177e44e98c48373a751eff6d90367cad0d539641ed4b59558606eed727
)
FetchContent_MakeAvailable(babylon)

Expand Down
6 changes: 3 additions & 3 deletions example/depend-use-cmake-find/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ set -ex
# sudo apt instal boost
# sudo apt instal protobuf

URL=https://github.com/baidu/babylon/archive/refs/tags/v1.1.6.tar.gz
NAME=babylon-1.1.6
SHA256=a5bbc29f55819c90e00b40f9b5d2716d5f0232a158d69c530d8c7bac5bd794b6
URL=https://github.com/baidu/babylon/archive/refs/tags/v1.2.0.tar.gz
NAME=babylon-1.2.0
SHA256=7e83e5177e44e98c48373a751eff6d90367cad0d539641ed4b59558606eed727
if ! echo "$SHA256 $NAME.tar.gz" | sha256sum -c; then
wget $URL --continue -O $NAME.tar.gz
fi
Expand Down
6 changes: 3 additions & 3 deletions example/depend-use-cmake-subdir/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh
set -ex

URL=https://github.com/baidu/babylon/archive/refs/tags/v1.1.6.tar.gz
NAME=babylon-1.1.6
SHA256=a5bbc29f55819c90e00b40f9b5d2716d5f0232a158d69c530d8c7bac5bd794b6
URL=https://github.com/baidu/babylon/archive/refs/tags/v1.2.0.tar.gz
NAME=babylon-1.2.0
SHA256=7e83e5177e44e98c48373a751eff6d90367cad0d539641ed4b59558606eed727
if ! echo "$SHA256 $NAME.tar.gz" | sha256sum -c; then
wget $URL --continue -O $NAME.tar.gz
fi
Expand Down
2 changes: 0 additions & 2 deletions example/depend-use-workspace/.bazeliskrc

This file was deleted.

1 change: 1 addition & 0 deletions example/depend-use-workspace/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.1.2
6 changes: 3 additions & 3 deletions example/depend-use-workspace/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive')
# babylon
http_archive(
name = 'com_baidu_babylon',
urls = ['https://github.com/baidu/babylon/archive/refs/tags/v1.1.6.tar.gz'],
strip_prefix = 'babylon-1.1.6',
sha256 = 'a5bbc29f55819c90e00b40f9b5d2716d5f0232a158d69c530d8c7bac5bd794b6',
urls = ['https://github.com/baidu/babylon/archive/refs/tags/v1.2.0.tar.gz'],
strip_prefix = 'babylon-1.2.0',
sha256 = '7e83e5177e44e98c48373a751eff6d90367cad0d539641ed4b59558606eed727',
)
################################################################################

Expand Down
3 changes: 1 addition & 2 deletions example/use-arena-with-brpc/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#common --registry=https://baidu.github.io/babylon/registry
common --registry=https://bcr.bazel.build
common --registry=file:///home/oathdruid/src/babylon/registry
common --registry=https://baidu.github.io/babylon/registry
common --registry=https://raw.githubusercontent.com/bazelboost/registry/main

build --compilation_mode opt --cxxopt=-std=c++17
1 change: 0 additions & 1 deletion example/use-arena-with-brpc/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
bazel_dep(name = 'abseil-cpp', version = '20240116.2')
bazel_dep(name = 'babylon', version = '1.2.0')
bazel_dep(name = 'brpc', version = '1.9.0')
bazel_dep(name = 'tcmalloc', version = '0.0.0-20240411-5ed309d')
Expand Down
3 changes: 1 addition & 2 deletions example/use-with-bthread/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
bazel_dep(name = 'abseil-cpp', version = '20210324.2')
bazel_dep(name = 'babylon', version = '1.1.6')
bazel_dep(name = 'babylon', version = '1.2.0')
bazel_dep(name = 'brpc', version = '1.9.0')

0 comments on commit 1c73ae4

Please sign in to comment.