Skip to content

Commit 424e86e

Browse files
authored
Merge pull request #545 from andreagilardoni/release-ci
ci: Added github workflow for release
2 parents c51f4e4 + be5cda9 commit 424e86e

5 files changed

Lines changed: 59 additions & 5 deletions

File tree

.github/workflows/release.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- "[0-9]+.[0-9]+.[0-9]+*"
7+
8+
jobs:
9+
core-release-from-tag:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v6
15+
with:
16+
submodules: 'recursive'
17+
18+
- name : Get the toolchain
19+
run: |
20+
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
21+
tar -xjf /opt/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 -C /opt/
22+
23+
- name: Setup build tools
24+
run: |
25+
sudo apt-get install -y git mercurial
26+
27+
- name: Set core version
28+
run: echo "TAG_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
29+
30+
- name: Get repo name
31+
run: echo "REPOSITORY_NAME=$(echo ${{ github.repository }} | cut -d "/" -f2-)" >> $GITHUB_ENV
32+
33+
- name: Build the core
34+
run: |
35+
export PATH=$PATH:/opt/gcc-arm-none-eabi-9-2019-q4-major/bin/
36+
extras/package.sh $TAG_VERSION
37+
38+
- name: Save core packages as artifact
39+
uses: actions/upload-artifact@v7
40+
with:
41+
name: ArduinoCore-renesas-packages
42+
path: ./*.tar.bz2
43+
44+
- name: Save core json as artifact
45+
uses: actions/upload-artifact@v7
46+
with:
47+
name: ArduinoCore-renesas-json
48+
path: ./*.json

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
url = https://github.com/bcmi-labs/mbedtls
1616
[submodule "extras/net/lwip"]
1717
path = extras/net/lwip
18-
url = https://git.savannah.nongnu.org/git/lwip.git
18+
url = https://github.com/lwip-tcpip/lwip.git
1919
[submodule "libraries/WiFi/extra/esptool"]
2020
path = libraries/WiFi/extra/esptool
2121
url = https://github.com/espressif/esptool.git

extras/package.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/bin/bash
22

3+
VERSION=$1
4+
35
if [ ! -f platform.txt ]; then
46
echo Launch this script from the root core folder as ./extras/package.sh
57
exit 2
68
fi
79

810
if [ ! -d ../ArduinoCore-API ]; then
9-
git clone git@github.com:arduino/ArduinoCore-API.git ../ArduinoCore-API
11+
git clone https://github.com/arduino/ArduinoCore-API.git ../ArduinoCore-API
1012
fi
1113

12-
VERSION=`cat platform.txt | grep "version=" | cut -f2 -d"="`
1314
echo $VERSION
1415

1516
#portenta
@@ -22,6 +23,7 @@ FILENAME=ArduinoCore-renesas_$VARIANT-$VERSION.tar.bz2
2223
git checkout boards.txt
2324
git checkout platform.txt
2425

26+
sed -i "s/9.9.9/$VERSION/g" platform.txt
2527
sed -i 's/nanor4./#nanor4./g' boards.txt
2628
sed -i 's/minima./#minima./g' boards.txt
2729
sed -i 's/unor4wifi./#unor4wifi./g' boards.txt
@@ -57,6 +59,7 @@ FILENAME=ArduinoCore-renesas_$VARIANT-$VERSION.tar.bz2
5759
git checkout boards.txt
5860
git checkout platform.txt
5961

62+
sed -i "s/9.9.9/$VERSION/g" platform.txt
6063
sed -i 's/portenta_c33./#portenta_c33./g' boards.txt
6164
sed -i 's/muxto./#muxto./g' boards.txt
6265
sed -i 's/opta_/#opta_/g' boards.txt
@@ -83,4 +86,4 @@ sed "s/%%SIZE_UNO%%/${SIZE}/" > package_renesas_${VERSION}_index.json
8386
cat package_renesas_${VERSION}_index.json
8487

8588
git checkout boards.txt
86-
git checkout platform.txt
89+
git checkout platform.txt

extras/package_index.json.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
},
2828
{
2929
"name": "Arduino UNO R4 WiFi"
30+
},
31+
{
32+
"name": "Arduino Nano R4"
3033
}
3134
],
3235
"toolsDependencies": [

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
44

55
name=Arduino Renesas fsp Boards
6-
version=1.5.3
6+
version=9.9.9
77

88
# Compile variables
99
# ------------------------

0 commit comments

Comments
 (0)