diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac771e7b8e..269fb09f5c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,99 +15,102 @@ concurrency: jobs: compile_macOS_release: name: upload standard binary of macOS - runs-on: macos-13 + runs-on: macos-12 # if: startsWith(github.ref,'v2') steps: - uses: actions/checkout@v3 with: - fetch-depth: 5 + clean: false + - name: install rust language uses: actions-rs/toolchain@v1 with: - toolchain: nightly-2021-06-17 + toolchain: nightly-2024-01-10 override: true + - 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 -DBUILD_STATIC=ON + run: mkdir build && cd build && export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) && CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON .. - name: compile - run: make -j2 && make tar - - name: tar BcosBuilder - run: mv tools/BcosBuilder . && tar -cvzf BcosBuilder.tgz BcosBuilder - - name: tar fisco-bcos for macOS - run: mv fisco-bcos-air/ bin/ && mv lightnode/fisco-bcos-lightnode/fisco-bcos-lightnode bin/ && cp tools/BcosAirBuilder/build_chain.sh bin/ && cd bin && strip fisco-bcos && strip fisco-bcos-lightnode && tar -cvzf lightnode.tar.gz fisco-bcos-lightnode && tar -cvzf fisco-bcos.tar.gz fisco-bcos build_chain.sh - - name: Upload fisco-bcos binaries to release - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: bin/fisco-bcos.tar.gz - asset_name: fisco-bcos-macOS-x86_64.tar.gz - tag: ${{ github.ref }} - overwrite: true - - name: Upload fisco-bcos-lightnode binaries to release - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: bin/lightnode.tar.gz - asset_name: fisco-bcos-lightnode-macOS-x86_64.tar.gz - tag: ${{ github.ref }} - overwrite: true - - name: Upload BcosNodeService binaries to release - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: fisco-bcos-tars-service/BcosNodeService.tgz - asset_name: BcosNodeService-macOS-x86_64.tgz - tag: ${{ github.ref }} - overwrite: true - - name: Upload BcosRpcService binaries to release - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: fisco-bcos-tars-service/BcosRpcService.tgz - asset_name: BcosRpcService-macOS-x86_64.tgz - tag: ${{ github.ref }} - overwrite: true - - name: Upload BcosGatewayService binaries to release - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: fisco-bcos-tars-service/BcosGatewayService.tgz - asset_name: BcosGatewayService-macOS-x86_64.tgz - tag: ${{ github.ref }} - overwrite: true - - name: Upload BcosMaxNodeService binaries to release - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: fisco-bcos-tars-service/BcosMaxNodeService.tgz - asset_name: BcosMaxNodeService-macOS-x86_64.tgz - tag: ${{ github.ref }} - overwrite: true - - name: Upload BcosExecutorService binaries to release - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: fisco-bcos-tars-service/BcosExecutorService.tgz - asset_name: BcosExecutorService-macOS-x86_64.tgz - tag: ${{ github.ref }} - overwrite: true - - name: Upload build_chain.sh - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: tools/BcosAirBuilder/build_chain.sh - asset_name: build_chain.sh - tag: ${{ github.ref }} - overwrite: true - - name: Upload BcosBuilder - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: BcosBuilder.tgz - asset_name: BcosBuilder.tgz - tag: ${{ github.ref }} - overwrite: true + run: cd build && make -j2 && make tar + # - name: tar BcosBuilder + # run: mv tools/BcosBuilder . && tar -cvzf BcosBuilder.tgz BcosBuilder + # - name: tar fisco-bcos for macOS + # run: mv fisco-bcos-air/ bin/ && mv lightnode/fisco-bcos-lightnode/fisco-bcos-lightnode bin/ && cp tools/BcosAirBuilder/build_chain.sh bin/ && cd bin && strip fisco-bcos && strip fisco-bcos-lightnode && tar -cvzf lightnode.tar.gz fisco-bcos-lightnode && tar -cvzf fisco-bcos.tar.gz fisco-bcos build_chain.sh + # - name: Upload fisco-bcos binaries to release + # uses: svenstaro/upload-release-action@v1-release + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: bin/fisco-bcos.tar.gz + # asset_name: fisco-bcos-macOS-x86_64.tar.gz + # tag: ${{ github.ref }} + # overwrite: true + # - name: Upload fisco-bcos-lightnode binaries to release + # uses: svenstaro/upload-release-action@v1-release + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: bin/lightnode.tar.gz + # asset_name: fisco-bcos-lightnode-macOS-x86_64.tar.gz + # tag: ${{ github.ref }} + # overwrite: true + # - name: Upload BcosNodeService binaries to release + # uses: svenstaro/upload-release-action@v1-release + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: fisco-bcos-tars-service/BcosNodeService.tgz + # asset_name: BcosNodeService-macOS-x86_64.tgz + # tag: ${{ github.ref }} + # overwrite: true + # - name: Upload BcosRpcService binaries to release + # uses: svenstaro/upload-release-action@v1-release + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: fisco-bcos-tars-service/BcosRpcService.tgz + # asset_name: BcosRpcService-macOS-x86_64.tgz + # tag: ${{ github.ref }} + # overwrite: true + # - name: Upload BcosGatewayService binaries to release + # uses: svenstaro/upload-release-action@v1-release + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: fisco-bcos-tars-service/BcosGatewayService.tgz + # asset_name: BcosGatewayService-macOS-x86_64.tgz + # tag: ${{ github.ref }} + # overwrite: true + # - name: Upload BcosMaxNodeService binaries to release + # uses: svenstaro/upload-release-action@v1-release + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: fisco-bcos-tars-service/BcosMaxNodeService.tgz + # asset_name: BcosMaxNodeService-macOS-x86_64.tgz + # tag: ${{ github.ref }} + # overwrite: true + # - name: Upload BcosExecutorService binaries to release + # uses: svenstaro/upload-release-action@v1-release + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: fisco-bcos-tars-service/BcosExecutorService.tgz + # asset_name: BcosExecutorService-macOS-x86_64.tgz + # tag: ${{ github.ref }} + # overwrite: true + # - name: Upload build_chain.sh + # uses: svenstaro/upload-release-action@v1-release + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: tools/BcosAirBuilder/build_chain.sh + # asset_name: build_chain.sh + # tag: ${{ github.ref }} + # overwrite: true + # - name: Upload BcosBuilder + # uses: svenstaro/upload-release-action@v1-release + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: BcosBuilder.tgz + # asset_name: BcosBuilder.tgz + # tag: ${{ github.ref }} + # overwrite: true compile_centos_release: name: upload standard binary of linux