Skip to content

Commit d283ad0

Browse files
authored
fix(sync-templates): empty matrix strategy expansion (#7415)
# Description There is a small error (which slipped through reviews) in matrix strategy expansion which results in errors like this: https://github.com/paritytech/polkadot-sdk/actions/runs/13079943579/job/36501002368. ## Integration N/A ## Review Notes Need to fix this in master and then rerun it manually against `stable2412-1`. Signed-off-by: Iulian Barbu <[email protected]>
1 parent 23833cc commit d283ad0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/misc-sync-templates.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,20 @@ jobs:
6262
- name: Build runtime and generate chain spec
6363
run: |
6464
# Prepare directories
65-
sudo mkdir -p ${{ matrix.template.runtime_path }}/target
66-
sudo chmod -R 777 ${{ matrix.template.runtime_path }}/target
65+
sudo mkdir -p ${{ matrix.runtime_path }}/target
66+
sudo chmod -R 777 ${{ matrix.runtime_path }}/target
6767
6868
# Build runtime
69-
srtool build --package ${{ matrix.template.package_name }} --runtime-dir ${{ matrix.template.runtime_path }} --root
69+
srtool build --package ${{ matrix.package_name }} --runtime-dir ${{ matrix.runtime_path }} --root
7070
7171
# Generate chain spec
7272
# Note that para-id is set to 1000 for both minimal/parachain templates.
7373
# `parachain-runtime` is hardcoded to use this parachain id.
7474
# `minimal` template isn't using it, but when started with Omni Node, this para id is required (any number can do it, so setting it to 1000 for convenience).
7575
chain-spec-builder -c dev_chain_spec.json create \
76-
--relay-chain "${{ matrix.template.relay_chain }}" \
76+
--relay-chain "${{ matrix.relay_chain }}" \
7777
--para-id 1000 \
78-
--runtime "${{ matrix.template.runtime_path }}/target/srtool/release/wbuild/${{ matrix.template.runtime_wasm_path }}" \
78+
--runtime "${{ matrix.runtime_path }}/target/srtool/release/wbuild/${{ matrix.runtime_wasm_path }}" \
7979
named-preset development
8080
8181
- name: Prepare upload directory

0 commit comments

Comments
 (0)