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

Commit

Permalink
feat(ci): update runtime build workflow (#471)
Browse files Browse the repository at this point in the history
* feat(ci): update runtime build workflow

- switch to a tag for the chevdor/srtool-actions
- trigger to only tags & ignore folders not involved in the runtime
- add weekly build schedule
- add timestamp to the artifacts
  • Loading branch information
chevdor authored Jun 10, 2021
1 parent a7b44a9 commit 9ff7252
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 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:
- "*"

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

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

jobs:
srtool:
Expand All @@ -9,10 +21,12 @@ jobs:
matrix:
chain: ["statemine", "westmint"]
steps:
- name: Get Timestamp
run: echo "TMSP=$(date '+%Y%m%d_%H%M%S')" >> $GITHUB_ENV
- 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 @@ -24,7 +38,7 @@ jobs:
- name: Archive Runtime
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.chain }}-runtime-${{ github.sha }}
name: ${{ matrix.chain }}-runtime-${{ env.TMSP }}-${{ github.sha }}
path: |
${{ steps.srtool_build.outputs.wasm }}
${{ matrix.chain }}-srtool-digest.json
Expand All @@ -51,7 +65,7 @@ jobs:
- name: Archive Subwasm results
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.chain }}-runtime-${{ github.sha }}
name: ${{ matrix.chain }}-runtime-${{ env.TMSP }}-${{ github.sha }}
path: |
${{ matrix.chain }}-info.json
${{ matrix.chain }}-metadata.json
Expand Down

0 comments on commit 9ff7252

Please sign in to comment.