Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

feat(ci): update runtime build workflow #471

Merged
merged 3 commits into from
Jun 10, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions .github/workflows/srtool.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Srtool build

on: push
on:
push:
tags:
- "*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific pattern of tab we could match on rather than any tag?

Copy link
Contributor Author

@chevdor chevdor Jun 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the existing tags (https://github.com/paritytech/cumulus/tags) and for now, the list is too short for a pattern. Since the frequency of new tags is still low, I think picking up all tags is better than every single push and fair for now. My proposal would be to refine the pattern as soon as we start using tags , that would trigger the runtime build but that we also want to exclude.


paths-ignore:
- "docker"
- "docs"
- "scripts"
- "test"

schedule:
- cron: "00 02 * * 1" # 2AM weekly on monday

jobs:
srtool:
Expand All @@ -9,10 +21,15 @@ jobs:
matrix:
chain: ["statemine", "westmint"]
steps:
- name: Get Time
id: time
uses: nanzm/get-time-action@v1.1
chevdor marked this conversation as resolved.
Show resolved Hide resolved
with:
format: "YYYY_MM_DD-HH_mm_ss"
- uses: actions/checkout@v2
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@draft
uses: chevdor/srtool-actions@v0.1.0
with:
chain: ${{ matrix.chain }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
Expand All @@ -23,8 +40,10 @@ jobs:
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"
- name: Archive Runtime
uses: actions/upload-artifact@v2
env:
TMSP: "${{ steps.time.outputs.time }}"
with:
name: ${{ matrix.chain }}-runtime-${{ github.sha }}
name: ${{ matrix.chain }}-runtime-$TIME-${{ github.sha }}
path: |
${{ steps.srtool_build.outputs.wasm }}
${{ matrix.chain }}-srtool-digest.json
Expand All @@ -50,8 +69,10 @@ jobs:
cat ${{ matrix.chain }}-diff.txt
- name: Archive Subwasm results
uses: actions/upload-artifact@v2
env:
TMSP: "${{ steps.time.outputs.time }}"
with:
name: ${{ matrix.chain }}-runtime-${{ github.sha }}
name: ${{ matrix.chain }}-runtime-$TIME-${{ github.sha }}
path: |
${{ matrix.chain }}-info.json
${{ matrix.chain }}-metadata.json
Expand Down