mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 23:01:01 +00:00
37f3269c45
Bumps [chevdor/srtool-actions](https://github.com/chevdor/srtool-actions) from 0.8.0 to 0.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/chevdor/srtool-actions/releases">chevdor/srtool-actions's releases</a>.</em></p> <blockquote> <h2>v0.9.0</h2> <h2>What's Changed</h2> <ul> <li>Add debugging info by <a href="https://github.com/chevdor"><code>@chevdor</code></a> in <a href="https://redirect.github.com/chevdor/srtool-actions/pull/25">chevdor/srtool-actions#25</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/chevdor/srtool-actions/compare/v0.8.0...v0.9.0">https://github.com/chevdor/srtool-actions/compare/v0.8.0...v0.9.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/chevdor/srtool-actions/commit/d7c66d9766f633abab95127ee910dd96892f8e3b"><code>d7c66d9</code></a> Add debugging info and fixes for the monorepo (<a href="https://redirect.github.com/chevdor/srtool-actions/issues/25">#25</a>)</li> <li>See full diff in <a href="https://github.com/chevdor/srtool-actions/compare/v0.8.0...v0.9.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
70 lines
2.8 KiB
YAML
70 lines
2.8 KiB
YAML
name: Build and Attach Runtimes to Releases/RC
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
|
|
env:
|
|
PROFILE: production
|
|
|
|
jobs:
|
|
build_and_upload:
|
|
strategy:
|
|
matrix:
|
|
runtime:
|
|
- { name: westend, package: westend-runtime, path: polkadot/runtime/westend }
|
|
- { name: rococo, package: rococo-runtime, path: polkadot/runtime/rococo }
|
|
- { name: asset-hub-rococo, package: asset-hub-rococo-runtime, path: cumulus/parachains/runtimes/assets/asset-hub-rococo }
|
|
- { name: asset-hub-westend, package: asset-hub-westend-runtime, path: cumulus/parachains/runtimes/assets/asset-hub-westend }
|
|
- { name: bridge-hub-rococo, package: bridge-hub-rococo-runtime, path: cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo }
|
|
- { name: contracts-rococo, package: contracts-rococo-runtime, path: cumulus/parachains/runtimes/contracts/contracts-rococo }
|
|
build_config:
|
|
# Release build has logging disabled and no dev features
|
|
- { type: on-chain-release, opts: --features on-chain-release-build }
|
|
# Debug build has logging enabled and developer features
|
|
- { type: dev-debug-build, opts: --features try-runtime }
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build ${{ matrix.runtime.name }} ${{ matrix.build_config.type }}
|
|
id: srtool_build
|
|
uses: chevdor/srtool-actions@v0.9.0
|
|
env:
|
|
BUILD_OPTS: ${{ matrix.build_config.opts }}
|
|
with:
|
|
chain: ${{ matrix.runtime.name }}
|
|
package: ${{ matrix.runtime.package }}
|
|
runtime_dir: ${{ matrix.runtime.path }}
|
|
profile: ${{ env.PROFILE }}
|
|
|
|
- name: Build Summary
|
|
run: |
|
|
echo "${{ steps.srtool_build.outputs.json }}" | jq . > ${{ matrix.runtime.name }}-srtool-digest.json
|
|
cat ${{ matrix.runtime.name }}-srtool-digest.json
|
|
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"
|
|
|
|
- name: Set up paths and runtime names
|
|
id: setup
|
|
run: |
|
|
RUNTIME_BLOB_NAME=$(echo ${{ matrix.runtime.package }} | sed 's/-/_/g').compact.compressed.wasm
|
|
PREFIX=${{ matrix.build_config.type == 'dev-debug-build' && 'DEV_DEBUG_BUILD__' || '' }}
|
|
|
|
echo "RUNTIME_BLOB_NAME=$RUNTIME_BLOB_NAME" >> $GITHUB_ENV
|
|
echo "ASSET_PATH=./${{ matrix.runtime.path }}/target/srtool/${{ env.PROFILE }}/wbuild/${{ matrix.runtime.package }}/$RUNTIME_BLOB_NAME" >> $GITHUB_ENV
|
|
echo "ASSET_NAME=$PREFIX$RUNTIME_BLOB_NAME" >> $GITHUB_ENV
|
|
|
|
- name: Upload Runtime to Release
|
|
uses: actions/upload-release-asset@v1
|
|
with:
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
asset_path: ${{ env.ASSET_PATH }}
|
|
asset_name: ${{ env.ASSET_NAME }}
|
|
asset_content_type: application/octet-stream
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|