Skip to content

Commit

Permalink
update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyShi22 committed Aug 23, 2022
1 parent b70c34d commit 8aa1900
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 34 deletions.
37 changes: 6 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,10 @@ jobs:
with:
toolchain: nightly-2021-06-17
override: true
- uses: actions/cache@v2
id: cache
with:
path: |
/home/runner/.hunter
/Users/runner/.hunter/
deps/src
ccache
key: hunter-clang-v1-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }}
restore-keys: |
hunter-clang-v1-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }}
hunter-clang-v1-notest-${{ runner.temp }}-${{ github.base_ref }}-
hunter-clang-v1-notest-${{ runner.temp }}-
- name: install macOS dependencies
run: brew install ccache libomp gmp
- name: configure
run: export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) && CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake . -DCMAKE_BUILD_TYPE=Release -DTEST=ON -DBUILD_STATIC=ON -DHUNTER_CONFIGURATION_TYPES=Release
run: export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) && CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake . -DCMAKE_BUILD_TYPE=Release -DTEST=ON -DBUILD_STATIC=ON
- name: compile
run: make -j2 && make tar
- name: tar BcosBuilder
Expand Down Expand Up @@ -122,8 +109,8 @@ jobs:
- name: install CentOS dependencies
run: |
yum install -y epel-release centos-release-scl
yum install -y git make gcc gcc-c++ glibc-static glibc-devel gmp-static cmake3 patch ccache llvm-toolset-7 devtoolset-7 libzstd-devel zlib-devel flex bison python-devel python3-devel wget
source /opt/rh/devtoolset-7/enable
yum install -y git make gcc gcc-c++ glibc-static glibc-devel gmp-static cmake3 patch ccache llvm-toolset-7 devtoolset-11 libzstd-devel zlib-devel flex bison python-devel python3-devel wget devtoolset-11 rh-perl530-perl
source /opt/rh/devtoolset-11/enable
alias cmake='cmake3'
yum install -y http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
yum install -y git
Expand All @@ -136,25 +123,13 @@ jobs:
with:
toolchain: nightly-2021-06-17
override: true
- uses: actions/cache@v2
id: cache
with:
path: |
/home/runner/.hunter
/github/home/.hunter
deps/src
ccache
key: hunter-centos-v1-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }}
restore-keys: |
hunter-centos-v1-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }}
hunter-centos-v1-notest-${{ runner.temp }}-${{ github.base_ref }}-
hunter-centos-v1-notest-${{ runner.temp }}-
- name: configure and compile
run: |
source /opt/rh/devtoolset-7/enable
source /opt/rh/devtoolset-11/enable
source /opt/rh/rh-perl530/enable
export LIBCLANG_PATH=/opt/rh/llvm-toolset-7/root/lib64/
source /opt/rh/llvm-toolset-7/enable
cmake3 . -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DTEST=OFF -DHUNTER_CONFIGURATION_TYPES=Release
cmake3 . -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DTEST=OFF
make -j4
make tar
- name: tar fisco-bcos for CentOS
Expand Down
7 changes: 4 additions & 3 deletions bcos-scheduler/src/SchedulerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,10 @@ void SchedulerImpl::commitBlock(bcos::protocol::BlockHeader::Ptr header,
};

auto whenAfterFront = [this, requestBlockNumber, callback]() {
auto message = "A smaller block need to commit, requestBlockNumber " +
std::to_string(requestBlockNumber) +
+", need to commit blockNumber: " + std::to_string(getCurrentBlockNumber());
auto message =
"A smaller block need to commit, requestBlockNumber " +
std::to_string(requestBlockNumber) +
+", need to commit blockNumber: " + std::to_string(getCurrentBlockNumber() + 1);
SCHEDULER_LOG(ERROR) << BLOCK_NUMBER(requestBlockNumber) << "CommitBlock error, "
<< message;

Expand Down

0 comments on commit 8aa1900

Please sign in to comment.