Skip to content

Commit be5cda9

Browse files
ci: Added github workflow for release
1 parent 55bb917 commit be5cda9

1 file changed

Lines changed: 48 additions & 0 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

0 commit comments

Comments
 (0)