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

Add srtool + subwasm workflow #462

Merged
merged 11 commits into from
Jun 3, 2021
Merged

Conversation

chevdor
Copy link
Contributor

@chevdor chevdor commented Jun 2, 2021

This PR adds a new github workflow to the CI.
It does the following:

  • run srtool
  • save the wasm
  • install/run subwasm
  • fetch the info, including the blake2_256 hash from the wasm
  • store relevant artifacts

@chevdor chevdor requested review from s3krit and apopiak June 2, 2021 23:20
@chevdor
Copy link
Contributor Author

chevdor commented Jun 3, 2021

@chevdor chevdor requested a review from joepetrowski June 3, 2021 08:10
Copy link
Contributor

@apopiak apopiak left a comment

Choose a reason for hiding this comment

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

Very cool!
Might want to not run it on every push and run it for westmint, too

@@ -0,0 +1,58 @@
name: Srtool build

on: push
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we want to run the workflow on every push?

Copy link
Contributor

Choose a reason for hiding this comment

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

@s3krit Can we run it on a release? E.g. on certain branch names or tags?

Copy link
Contributor

@s3krit s3krit Jun 3, 2021

Choose a reason for hiding this comment

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

Yep dead simple - if you know the pattern of what cumulus release tags look like, you can match like so: https://github.com/paritytech/polkadot/blob/master/.github/workflows/publish-draft-release.yml#L7

(and swapping tag for branch if you want to react to a particular branch pattern)

.github/workflows/srtool.yml Outdated Show resolved Hide resolved
.github/workflows/srtool.yml Outdated Show resolved Hide resolved
@chevdor
Copy link
Contributor Author

chevdor commented Jun 3, 2021 via email

Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com>
@chevdor
Copy link
Contributor Author

chevdor commented Jun 3, 2021

The first run including westmint can be seen here: https://github.com/chevdor/cumulus/actions/runs/902147585

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants