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 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 diff --git a/extras/package.sh b/extras/package.sh index abb368d25..540691cc7 100755 --- a/extras/package.sh +++ b/extras/package.sh @@ -1,15 +1,16 @@ #!/bin/bash +VERSION=$1 + if [ ! -f platform.txt ]; then echo Launch this script from the root core folder as ./extras/package.sh exit 2 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 -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/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": [ 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 # ------------------------