Skip to content

Add custom rust toolchain support #208

Add custom rust toolchain support

Add custom rust toolchain support #208

Workflow file for this run

name: Build Cumulus 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:
include:
- category: contracts
runtime: contracts-rococo
- category: assets
runtime: asset-hub-kusama
- category: assets
runtime: asset-hub-polkadot
- category: starters
runtime: shell
name: Build ${{ matrix.category }}/${{ matrix.runtime }}
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/cumulus
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.runtime }}
runtime_dir: parachains/runtimes/${{ matrix.category }}/${{ matrix.runtime }}
workdir: "${{ github.workspace }}/repo"
- name: Summary
run: |
echo '${{ steps.srtool_build.outputs.json }}' | jq . | tee ${{ matrix.runtime }}-srtool-digest.json
echo "Compact Runtime location : ${{ steps.srtool_build.outputs.wasm }}"
echo "Compressed Runtime location : ${{ steps.srtool_build.outputs.wasm_compressed }}"