Skip to content

Commit

Permalink
test: add cumulus repo
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Jun 28, 2021
1 parent a04f7c6 commit a71be7a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 5 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/cumulus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build Polkadot Repo
on:
push:
branches:
- "*"

workflow_dispatch:
inputs:
srtool_tag:
description: The SRTOOL tag to use
default: 1.53.0
required: false

schedule:
- cron: "00 04 * * 1" # 4AM weekly on mondays

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
chain: ["statemine", "statemint", "westmint", "rococo", "shell"]

name: Build ${{ matrix.chain }}
steps:

- uses: actions/checkout@v2
with:
path: action

- uses: actions/checkout@v2
with:
repository: paritytech/cumulus
fetch-depth: 0
path: repo

- name: Srtool build
id: srtool_build
uses: ./action
with:
chain: ${{ matrix.chain }}
tag: ${{ github.event.inputs.srtool_tag }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}
workdir: "${{ github.workspace }}/repo"

- 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 }}"
5 changes: 0 additions & 5 deletions .github/workflows/polkadot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,12 @@ jobs:
ls -al
pwd
# - name: Go in the repo
# working-directory: ./repo
# run: pwd

- name: Srtool build
id: srtool_build
uses: ./action
with:
chain: ${{ matrix.chain }}
tag: ${{ github.event.inputs.srtool_tag }}
# runtime_dir: repo/runtime/${{ matrix.chain }}
workdir: "${{ github.workspace }}/repo"

- name: Summary
Expand Down

0 comments on commit a71be7a

Please sign in to comment.