Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions extras/package.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
git checkout platform.txt
3 changes: 3 additions & 0 deletions extras/package_index.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
},
{
"name": "Arduino UNO R4 WiFi"
},
{
"name": "Arduino Nano R4"
}
],
"toolsDependencies": [
Expand Down
2 changes: 1 addition & 1 deletion platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ------------------------
Expand Down
Loading