From c387a6c212cf9ccfa7ba7e83b500f9dd1986f7ce Mon Sep 17 00:00:00 2001 From: jimmyshi <417711026@qq.com> Date: Mon, 5 Sep 2022 22:25:07 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17f81008b4..78ec31319a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -129,7 +129,7 @@ jobs: 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=Debug -DBUILD_STATIC=ON -DTESTS=OFF + cmake3 . -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DTESTS=OFF make -j4 make tar - name: tar fisco-bcos for CentOS @@ -189,4 +189,24 @@ jobs: file: tools/BcosAirBuilder/build_chain.sh asset_name: build_chain.sh tag: ${{ github.ref }} - overwrite: true \ No newline at end of file + overwrite: true + - name: configure and compile relwithdeb + run: | + source /opt/rh/devtoolset-10/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 . -DBUILD_STATIC=ON -DTESTS=OFF + make -j4 + make tar + - name: tar fisco-bcos for CentOS + run: mkdir bin && mv fisco-bcos-air/fisco-bcos bin && cd bin && tar -cvzf fisco-bcos-relwithdebinfo.tar.gz fisco-bcos + - name: Upload fisco-bcos binaries to release + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: bin/fisco-bcos-relwithdebinfo.tar.gz + asset_name: fisco-bcos-linux-x86_64-relwithdebinfo.tar.gz + tag: ${{ github.ref }} + overwrite: true +