Update doc #226
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Polkadot Repo | |
env: | |
DEFAULT_IMAGE: paritytech/srtool | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
push: | |
tags: | |
- "v*" | |
branches: | |
- master | |
workflow_dispatch: | |
inputs: | |
srtool_image: | |
description: The SRTOOL image to use | |
default: paritytech/srtool | |
required: false | |
srtool_tag: | |
description: The SRTOOL tag to use | |
default: 1.70.0 | |
required: false | |
schedule: | |
- cron: "00 04 * * 1" # 4AM weekly on mondays | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
chain: ["polkadot", "kusama", "westend"] | |
name: Build ${{ matrix.chain }} | |
steps: | |
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 | |
with: | |
path: action | |
- name: Checkout repo under test | |
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 | |
with: | |
repository: paritytech/polkadot | |
fetch-depth: 0 | |
path: repo | |
- name: Srtool build | |
id: srtool_build | |
uses: ./action | |
with: | |
image: ${{ github.event.inputs.srtool_image || env.DEFAULT_IMAGE }} | |
tag: ${{ github.event.inputs.srtool_tag }} | |
chain: ${{ matrix.chain }} | |
workdir: "${{ github.workspace }}/repo" | |
profile: "production" | |
- name: Summary | |
run: | | |
echo '${{ steps.srtool_build.outputs.json }}' | jq . | tee ${{ matrix.chain }}-srtool-digest.json | |
echo "Compact Runtime location : ${{ steps.srtool_build.outputs.wasm }}" | |
echo "Compressed Runtime location : ${{ steps.srtool_build.outputs.wasm_compressed }}" |