Skip to content

Commit

Permalink
add additional step to set build options
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorPopelyaev committed Jul 5, 2024
1 parent f611426 commit a45ad83
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release-srtool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,20 @@ jobs:
with:
fetch-depth: 0

- name: Prepare build options
run: |
BUILD_OPTIONS=""
if [[ ${{ matrix.chain }} == 'asset-hub-rococo' || ${{ matrix.chain }} == 'asset-hub-westend' || ${{ matrix.chain }} == 'rococo' || ${{ matrix.chain }} == 'westend' ]]; then
BUILD_OPTIONS=${{ inputs.build_opts }}
fi
echo "BUILD_OPTIONS=${BUILD_OPTIONS}" >> $GITHUB_ENV
- name: Srtool build
if: ${{ matrix.chain != 'asset-hub-rococo' || matrix.chain != 'asset-hub-westend' || matrix.chain != 'rococo' || matrix.chain != 'westend' }}
id: srtool_build
uses: chevdor/srtool-actions@v0.9.2
with:
chain: ${{ matrix.chain }}
runtime_dir: ${{ matrix.runtime_dir }}

- name: Srtool build with options
if: ${{ matrix.chain == 'asset-hub-rococo' || matrix.chain == 'asset-hub-westend' || matrix.chain == 'rococo' || matrix.chain == 'westend' }}
id: srtool_build_with_opts
uses: chevdor/srtool-actions@v0.9.2
env:
BUILD_OPTS: ${{ inputs.build_opts }}
BUILD_OPTS: ${{ github.env.BUILD_OPTIONS }}
with:
chain: ${{ matrix.chain }}
runtime_dir: ${{ matrix.runtime_dir }}
Expand Down

0 comments on commit a45ad83

Please sign in to comment.