Skip to content

Commit

Permalink
fix srtool config (#426)
Browse files Browse the repository at this point in the history
* fix folder

* fix package name

* freeze rust version

* rename artifact

* fix github action issues

* master only
  • Loading branch information
ETeissonniere authored Nov 9, 2021
1 parent 661a9fe commit 3942580
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/srtool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
chain: ["nodle-chain"]
runtime: ["main"]

steps:
- uses: actions/checkout@v2
Expand All @@ -18,35 +18,37 @@ jobs:
id: srtool_build
uses: chevdor/[email protected]
with:
chain: ${{ matrix.chain }}
runtime_dir: runtime
chain: ${{ matrix.runtime }}
package: runtime-${{ matrix.runtime }}
runtime_dir: runtimes/${{ matrix.runtime }}
tag: 1.56.1

- name: Summary
run: |
echo '${{ steps.srtool_build.outputs.json }}' | jq > ${{ matrix.chain }}-srtool-digest.json
cat ${{ matrix.chain }}-srtool-digest.json
echo '${{ steps.srtool_build.outputs.json }}' | jq > ${{ matrix.runtime }}-srtool-digest.json
cat ${{ matrix.runtime }}-srtool-digest.json
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"
- name: Archive Runtime
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.chain }}-runtime-${{ github.sha }}.compact.wasm
name: ${{ matrix.runtime }}-${{ github.sha }}.compact.wasm
path: |
${{ steps.srtool_build.outputs.wasm }}
- name: Archive Metadata
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.chain }}-srtool-digest.json
name: ${{ matrix.runtime }}-srtool-digest.json
path: |
${{ matrix.chain }}-srtool-digest.json
${{ matrix.runtime }}-srtool-digest.json
# TODO: once supported, upload compressed runtime too
# - name: Archive Runtime
# uses: actions/upload-artifact@v2
# with:
# name: ${{ matrix.chain }}-runtime-${{ github.sha }}
# name: ${{ matrix.runtime }}-${{ github.sha }}
# path: |
# ${{ steps.srtool_build.outputs.wasm }}
# ${{ steps.srtool_build.outputs.wasm_compressed }}
# ${{ matrix.chain }}-srtool-digest.json
# ${{ matrix.runtime }}-srtool-digest.json

0 comments on commit 3942580

Please sign in to comment.