-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb60a83
commit ea177f5
Showing
3 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Install and build RIOT dependencies | ||
description: Install and build RIOT dependencies | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup environment variables | ||
run: | | ||
echo "RIOT_VERSION=2024.07" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends git gcc-arm-none-eabi make \ | ||
gcc-multilib libstdc++-arm-none-eabi-newlib openocd gdb-multiarch \ | ||
doxygen wget unzip python3-serial | ||
shell: bash | ||
|
||
- name: Cache RIOT | ||
id: cache-riot | ||
uses: actions/cache@v4 | ||
with: | ||
path: /opt/RIOT-${{env.RIOT_VERSION}} | ||
key: riot-${{env.RIOT_VERSION}} | ||
|
||
- name: Install RIOT | ||
if: steps.cache-riot.outputs.cache-hit != 'true' | ||
run: | | ||
wget -q "https://github.com/RIOT-OS/RIOT/archive/refs/tags/${{env.RIOT_VERSION}}.tar.gz" | ||
sudo tar xvf "${{env.RIOT_VERSION}}.tar.gz" --directory /opt/ | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: RIOT examples | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
name: Build RIOT examples | ||
runs-on: ubuntu-latest | ||
env: | ||
RIOT_VERSION: "2024.07" | ||
RIOTBASE: "/opt/RIOT-2024.07" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install dependencies | ||
uses: ./.github/actions/riot | ||
|
||
- name: Build examples | ||
run: | | ||
cd examples/riot | ||
./buildAll.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# List of folders | ||
FOLDERS=("blinky" "hello" ) | ||
|
||
BOARD=nucleo-f429zi | ||
|
||
# Command to execute in each folder | ||
COMMAND="make BOARD=$BOARD all" | ||
|
||
# Iterate over each folder and execute the command | ||
for dir in "${FOLDERS[@]}"; do | ||
echo "Entering $dir" | ||
pushd $dir | ||
$COMMAND | ||
popd | ||
done |