From a902e065ae9eeb5e4d38dd80e131ac1225346187 Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Mon, 4 Nov 2024 10:50:42 +0100 Subject: [PATCH] replace hardcoded profile in the path --- .github/workflows/manual-polkadot-sdk.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/manual-polkadot-sdk.yml b/.github/workflows/manual-polkadot-sdk.yml index e08d8da..cf35413 100644 --- a/.github/workflows/manual-polkadot-sdk.yml +++ b/.github/workflows/manual-polkadot-sdk.yml @@ -133,7 +133,7 @@ jobs: with: key: ${{ matrix.chain }}-${{ needs.find-runtimes.outputs.commit_hash }} path: | - sdk/${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${{ matrix.chain }}-runtime + sdk/${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${{ matrix.chain }}-runtime - name: Srtool build id: srtool_build @@ -155,7 +155,7 @@ jobs: if: ${{ steps.cache_runtime.outputs.cache-hit != 'true' }} working-directory: sdk run: | - cached_output=${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${{ matrix.chain }}-runtime/ + cached_output=${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${{ matrix.chain }}-runtime/ digest_file=${cached_output}/${{ matrix.chain }}-srtool-digest.json echo '${{ steps.srtool_build.outputs.json }}' | jq > ${digest_file} cat ${digest_file} @@ -167,9 +167,9 @@ jobs: runtime_package=${{ matrix.chain }}-runtime runtime_filename=${runtime_package//-/_} - wasm="${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${runtime_package}/${runtime_filename}.compact.wasm" + wasm="${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${runtime_package}/${runtime_filename}.compact.wasm" - wasm_compressed="${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${runtime_package}/${runtime_filename}.compact.compressed.wasm" + wasm_compressed="${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${runtime_package}/${runtime_filename}.compact.compressed.wasm" # we need wasm and wasm_compressed echo "wasm=$wasm" >> "$GITHUB_OUTPUT" @@ -178,7 +178,7 @@ jobs: - name: Summary working-directory: sdk run: | - cached_output=${{ matrix.runtime_dir }}/target/srtool/release/wbuild/${{ matrix.chain }}-runtime/ + cached_output=${{ matrix.runtime_dir }}/target/srtool/${{ inputs.profile }}/wbuild/${{ matrix.chain }}-runtime/ digest_file=${cached_output}/${{ matrix.chain }}-srtool-digest.json ls -al ${digest_file} cat ${digest_file}