From 7aa822d6724e8a68c4960b4d78062bbe238a360d Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Fri, 24 May 2024 22:49:51 +0200 Subject: [PATCH] build bins separately --- .../workflows/release-30_publish_release_draft.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-30_publish_release_draft.yml b/.github/workflows/release-30_publish_release_draft.yml index bf2b99d54f5f..f39eb4c1716e 100644 --- a/.github/workflows/release-30_publish_release_draft.yml +++ b/.github/workflows/release-30_publish_release_draft.yml @@ -43,11 +43,13 @@ jobs: - name: Build ${{ matrix.binary }} binary run: | - package=${{ matrix.binary }} - [[ ${{ matrix.binary }} =~ chain-spec-builder ]] && package=staging-${{ matrix.binary }} - - cargo build --locked --profile=production -p ${package} --bin ${{ matrix.binary }} - target/production/${{ matrix.binary }} --version + if [[ ${{ matrix.binary }} =~ chain-spec-builder ]]; then + cargo build --locked --profile=production -p staging-${{ matrix.binary }} --bin ${{ matrix.binary }} + target/production/${{ matrix.binary }} -h + else + cargo build --locked --profile=production -p ${{ matrix.binary }} + target/production/${{ matrix.binary }} --version + fi - name: Upload ${{ matrix.binary }} binary uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1