Skip to content

Portenta H7: extended pin list, pinNames, SPI, WIre, PWM, ADC #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Prev Previous commit
Next Next commit
github: generate package_index json
  • Loading branch information
pillo79 committed Apr 8, 2025
commit 516bef95226589c8a0ca6ece2d5bd2e6a1a2844e
17 changes: 15 additions & 2 deletions .github/workflows/package_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,14 @@ jobs:
needs:
- package-core
- test-core
env:
CORE_ARTIFACT: ${{ needs.package-core.outputs.CORE_ARTIFACT }}
CORE_TAG: ${{ needs.package-core.outputs.CORE_TAG }}
PACKAGE_INDEX_JSON: zephyr-core-${{ needs.package-core.outputs.CORE_TAG }}.json
steps:
- uses: actions/download-artifact@v4
with:
name: ${{ needs.package-core.outputs.CORE_ARTIFACT }}
name: ${{ env.CORE_ARTIFACT }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -171,4 +175,13 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}

- name: Upload artifact
run: aws s3 sync ${{ needs.package-core.outputs.CORE_ARTIFACT }}.tar.bz2 s3://${{ secrets.S3_BUCKET }}
run: aws s3 sync ${{ env.CORE_ARTIFACT }}.tar.bz2 s3://${{ secrets.S3_BUCKET }}

- name: Prepare package index snippet
run: ./extra/gen_package_index_json.sh

- name: Archive package index snippet
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_INDEX_JSON }}
path: ${{ env.PACKAGE_INDEX_JSON }}
11 changes: 11 additions & 0 deletions extra/gen_package_index_json.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

if [ -z "$CORE_TAG" ]; then
echo "This script can be used in Github CI only."
exit 1
fi

export ARTIFACT_HASH=$(sha256sum $CORE_ARTIFACT)
export ARTIFACT_SIZE=$(stat -c %s $CORE_ARTIFACT)

envsubst < extra/zephyr-core-template.json > $PACKAGE_INDEX_JSON
66 changes: 66 additions & 0 deletions extra/zephyr-core-template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"packages": [
{
"platforms": [
{
"name": "Arduino Zephyr Boards",
"architecture": "zephyr",
"version": "$CORE_TAG",
"category": "Arduino",
"url": "https://downloads.arduino.cc/cores/zephyr/${CORE_ARTIFACT}.tar.bz2",
"archiveFileName": "${CORE_ARTIFACT}.tar.bz2",
"checksum": "SHA-256:${ARTIFACT_HASH}",
"size": "${ARTIFACT_SIZE}",
"help": {
"online": "https://www.arduino.cc/en/Reference/HomePage"
},
"boards": [
{
"name": "Arduino Giga"
},
{
"name": "Arduino Nano 33 BLE"
},
{
"name": "Arduino Portenta H7"
},
{
"name": "Arduino Portenta C33"
},
{
"name": "Renesas EK_RA8D1"
},
{
"name": "NXP FRDM MCXN947"
},
{
"name": "NXP FRDM RW612"
}
],
"toolsDependencies": [
{
"packager": "zephyr",
"name": "arm-zephyr-eabi",
"version": "0.16.8"
},
{
"packager": "arduino",
"name": "dfu-util",
"version": "0.11.0-arduino5"
},
{
"packager": "arduino",
"name": "bossac",
"version": "1.9.1-arduino2"
},
{
"packager": "arduino",
"name": "zephyr-post-build-tool",
"version": "0.1.0"
}
]
}
]
}
]
}