From 62aa7de26a3d25d2242d4493ac92210d45621225 Mon Sep 17 00:00:00 2001 From: Andrea Gilardoni Date: Wed, 27 May 2026 10:55:00 +0200 Subject: [PATCH 1/5] package: extract version macro from parameter Unify the release process with other cores to allow version to be provided as a parameter to package.sh tool, instead of extracting it from platform.txt --- extras/package.sh | 7 +++++-- platform.txt | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/extras/package.sh b/extras/package.sh index abb368d25..8b651f385 100755 --- a/extras/package.sh +++ b/extras/package.sh @@ -1,5 +1,7 @@ #!/bin/bash +VERSION=$1 + if [ ! -f platform.txt ]; then echo Launch this script from the root core folder as ./extras/package.sh exit 2 @@ -9,7 +11,6 @@ if [ ! -d ../ArduinoCore-API ]; then git clone git@github.com:arduino/ArduinoCore-API.git ../ArduinoCore-API fi -VERSION=`cat platform.txt | grep "version=" | cut -f2 -d"="` echo $VERSION #portenta @@ -22,6 +23,7 @@ FILENAME=ArduinoCore-renesas_$VARIANT-$VERSION.tar.bz2 git checkout boards.txt git checkout platform.txt +sed -i "s/9.9.9/$VERSION/g" platform.txt sed -i 's/nanor4./#nanor4./g' boards.txt sed -i 's/minima./#minima./g' boards.txt sed -i 's/unor4wifi./#unor4wifi./g' boards.txt @@ -57,6 +59,7 @@ FILENAME=ArduinoCore-renesas_$VARIANT-$VERSION.tar.bz2 git checkout boards.txt git checkout platform.txt +sed -i "s/9.9.9/$VERSION/g" platform.txt sed -i 's/portenta_c33./#portenta_c33./g' boards.txt sed -i 's/muxto./#muxto./g' boards.txt sed -i 's/opta_/#opta_/g' boards.txt @@ -83,4 +86,4 @@ sed "s/%%SIZE_UNO%%/${SIZE}/" > package_renesas_${VERSION}_index.json cat package_renesas_${VERSION}_index.json git checkout boards.txt -git checkout platform.txt \ No newline at end of file +git checkout platform.txt diff --git a/platform.txt b/platform.txt index bdedb5bc5..6481618a4 100644 --- a/platform.txt +++ b/platform.txt @@ -3,7 +3,7 @@ # https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification name=Arduino Renesas fsp Boards -version=1.5.3 +version=9.9.9 # Compile variables # ------------------------ From f46af818030366455251f636a0bc0651663388fe Mon Sep 17 00:00:00 2001 From: Andrea Gilardoni Date: Wed, 27 May 2026 10:40:16 +0200 Subject: [PATCH 2/5] package: Add nanor4 to package template --- extras/package_index.json.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extras/package_index.json.template b/extras/package_index.json.template index 683159083..4f7d0bb72 100644 --- a/extras/package_index.json.template +++ b/extras/package_index.json.template @@ -27,6 +27,9 @@ }, { "name": "Arduino UNO R4 WiFi" + }, + { + "name": "Arduino Nano R4" } ], "toolsDependencies": [ From ecb0bd7121c135e9454a04d31cba9242a808cf4e Mon Sep 17 00:00:00 2001 From: Andrea Gilardoni Date: Wed, 27 May 2026 11:21:01 +0200 Subject: [PATCH 3/5] gitmodules: lwip change remote to github --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 5f1808f7a..994995b28 100644 --- a/.gitmodules +++ b/.gitmodules @@ -15,7 +15,7 @@ url = https://github.com/bcmi-labs/mbedtls [submodule "extras/net/lwip"] path = extras/net/lwip - url = https://git.savannah.nongnu.org/git/lwip.git + url = https://github.com/lwip-tcpip/lwip.git [submodule "libraries/WiFi/extra/esptool"] path = libraries/WiFi/extra/esptool url = https://github.com/espressif/esptool.git From 55bb917972f167220d22691ed5184b485b584a0c Mon Sep 17 00:00:00 2001 From: Andrea Gilardoni Date: Wed, 27 May 2026 17:18:31 +0200 Subject: [PATCH 4/5] package: changing core api url to https --- extras/package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/package.sh b/extras/package.sh index 8b651f385..540691cc7 100755 --- a/extras/package.sh +++ b/extras/package.sh @@ -8,7 +8,7 @@ if [ ! -f platform.txt ]; then fi if [ ! -d ../ArduinoCore-API ]; then - git clone git@github.com:arduino/ArduinoCore-API.git ../ArduinoCore-API + git clone https://github.com/arduino/ArduinoCore-API.git ../ArduinoCore-API fi echo $VERSION From be5cda91b98af724d19e0eac17e54bc6298a6e73 Mon Sep 17 00:00:00 2001 From: Andrea Gilardoni Date: Tue, 26 May 2026 14:17:06 +0200 Subject: [PATCH 5/5] ci: Added github workflow for release --- .github/workflows/release.yaml | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..97754609a --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,48 @@ +name: release + +on: + push: + tags: + - "[0-9]+.[0-9]+.[0-9]+*" + +jobs: + core-release-from-tag: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + submodules: 'recursive' + + - name : Get the toolchain + run: | + wget -O /opt/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 https://developer.arm.com/-/media/files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 + tar -xjf /opt/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 -C /opt/ + + - name: Setup build tools + run: | + sudo apt-get install -y git mercurial + + - name: Set core version + run: echo "TAG_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + + - name: Get repo name + run: echo "REPOSITORY_NAME=$(echo ${{ github.repository }} | cut -d "/" -f2-)" >> $GITHUB_ENV + + - name: Build the core + run: | + export PATH=$PATH:/opt/gcc-arm-none-eabi-9-2019-q4-major/bin/ + extras/package.sh $TAG_VERSION + + - name: Save core packages as artifact + uses: actions/upload-artifact@v7 + with: + name: ArduinoCore-renesas-packages + path: ./*.tar.bz2 + + - name: Save core json as artifact + uses: actions/upload-artifact@v7 + with: + name: ArduinoCore-renesas-json + path: ./*.json