fix: getting-started workflow use local templates and workspace builds

- Add PEZKUWI_TEMPLATE_SOURCE env var support to getting-started.sh
  for using local templates instead of cloning from external repos
- Update workflow to build templates within SDK workspace context
  since templates use workspace inheritance
- Add package names to matrix for correct cargo -p targets
- Add SKIP_WASM_BUILD=1 to avoid serde_core wasm32 issues
This commit is contained in:
2026-01-08 12:12:22 +03:00
parent 0f57673c41
commit 949f2f8f24
2 changed files with 40 additions and 12 deletions
+9 -2
View File
@@ -33,8 +33,15 @@ clone_and_enter_template() {
if [ -d "${template}-template" ]; then
printf "\n✅︎ ${template}-template directory already exists. -> Entering.\n"
else
printf "\n↓ Let's grab the ${template} template from github.\n"
git clone --quiet https://github.com/pezkuwichain/pezkuwi-sdk-${template}-template.git ${template}-template
# PEZKUWI_TEMPLATE_SOURCE can be set to a local path for CI testing
# e.g., PEZKUWI_TEMPLATE_SOURCE="/path/to/pezkuwi-sdk/templates"
if [ -n "$PEZKUWI_TEMPLATE_SOURCE" ] && [ -d "$PEZKUWI_TEMPLATE_SOURCE/${template}" ]; then
printf "\n↓ Copying ${template} template from local source.\n"
cp -r "$PEZKUWI_TEMPLATE_SOURCE/${template}" "${template}-template"
else
printf "\n↓ Let's grab the ${template} template from github.\n"
git clone --quiet https://github.com/pezkuwichain/pezkuwi-sdk-${template}-template.git ${template}-template
fi
fi
cd ${template}-template
}