Skip to content

Commit

Permalink
build bins separately
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorPopelyaev committed May 24, 2024
1 parent f171a3c commit 7aa822d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release-30_publish_release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7aa822d

Please sign in to comment.