From 3942580c6451fab204f5cff4ac7359fc5b520f73 Mon Sep 17 00:00:00 2001 From: Eliott Teissonniere <10683430+ETeissonniere@users.noreply.github.com> Date: Tue, 9 Nov 2021 12:14:51 +0100 Subject: [PATCH] fix srtool config (#426) * fix folder * fix package name * freeze rust version * rename artifact * fix github action issues * master only --- .github/workflows/srtool.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/srtool.yml b/.github/workflows/srtool.yml index 38f57b51367..02ca993cde7 100644 --- a/.github/workflows/srtool.yml +++ b/.github/workflows/srtool.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - chain: ["nodle-chain"] + runtime: ["main"] steps: - uses: actions/checkout@v2 @@ -18,35 +18,37 @@ jobs: id: srtool_build uses: chevdor/srtool-actions@v0.3.0 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 \ No newline at end of file + # ${{ matrix.runtime }}-srtool-digest.json \ No newline at end of file