From 5ee9507434c0e822c738b77e419c84360e6fa884 Mon Sep 17 00:00:00 2001 From: Yin Guanhao Date: Wed, 19 Jul 2023 23:21:04 +0800 Subject: [PATCH] Fix workflow and use thin LTO, PORTABLE --- .github/workflows/docker-publish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 634b287..56accf1 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -147,7 +147,11 @@ jobs: - name: Build godwoken if: steps.godwoken-cache.outputs.cache-hit != 'true' working-directory: build/godwoken - run: rustup component add rustfmt && CARGO_PROFILE_RELEASE_LTO=true cargo build --release + env: + # For ckb-rocksdb. + PORTABLE: true + CARGO_PROFILE_RELEASE_LTO: thin + run: rustup component add rustfmt && cargo build --release # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action @@ -210,7 +214,6 @@ jobs: docker run --rm ${{ env.IMAGE }} gw-tools --version docker run --rm ${{ env.IMAGE }} ckb --version docker run --rm ${{ env.IMAGE }} ckb-cli --version - docker run --rm ${{ env.IMAGE }} ckb-indexer --version docker run --rm ${{ env.IMAGE }} find /scripts -type f -exec sha1sum {} \; - name: Record image info to the outputs of this jobs