Skip to content
Snippets Groups Projects
Commit 8373f510 authored by Chevdor's avatar Chevdor Committed by GitHub
Browse files

feat(ci): update runtime build workflow (#471)

* 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
parent 37e474a9
No related merge requests found
name: Srtool build name: Srtool build
on: push on:
push:
tags:
- "*"
paths-ignore:
- "docker"
- "docs"
- "scripts"
- "test"
schedule:
- cron: "00 02 * * 1" # 2AM weekly on monday
jobs: jobs:
srtool: srtool:
...@@ -9,10 +21,12 @@ jobs: ...@@ -9,10 +21,12 @@ jobs:
matrix: matrix:
chain: ["statemine", "westmint"] chain: ["statemine", "westmint"]
steps: steps:
- name: Get Timestamp
run: echo "TMSP=$(date '+%Y%m%d_%H%M%S')" >> $GITHUB_ENV
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Srtool build - name: Srtool build
id: srtool_build id: srtool_build
uses: chevdor/srtool-actions@draft uses: chevdor/srtool-actions@v0.1.0
with: with:
chain: ${{ matrix.chain }} chain: ${{ matrix.chain }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
...@@ -24,7 +38,7 @@ jobs: ...@@ -24,7 +38,7 @@ jobs:
- name: Archive Runtime - name: Archive Runtime
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ matrix.chain }}-runtime-${{ github.sha }} name: ${{ matrix.chain }}-runtime-${{ env.TMSP }}-${{ github.sha }}
path: | path: |
${{ steps.srtool_build.outputs.wasm }} ${{ steps.srtool_build.outputs.wasm }}
${{ matrix.chain }}-srtool-digest.json ${{ matrix.chain }}-srtool-digest.json
...@@ -51,7 +65,7 @@ jobs: ...@@ -51,7 +65,7 @@ jobs:
- name: Archive Subwasm results - name: Archive Subwasm results
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ matrix.chain }}-runtime-${{ github.sha }} name: ${{ matrix.chain }}-runtime-${{ env.TMSP }}-${{ github.sha }}
path: | path: |
${{ matrix.chain }}-info.json ${{ matrix.chain }}-info.json
${{ matrix.chain }}-metadata.json ${{ matrix.chain }}-metadata.json
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment