Skip to content

Commit

Permalink
Merge pull request #223 from ZettaScaleLabs/feat/protocol
Browse files Browse the repository at this point in the history
WIP: Protocol 0.8
  • Loading branch information
p-avital authored Aug 31, 2023
2 parents b68364f + 499219d commit 88cb8ec
Show file tree
Hide file tree
Showing 129 changed files with 8,811 additions and 7,671 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
BasedOnStyle: Google
IndentWidth: 4
ColumnLimit: 120
PointerAlignment: Left
230 changes: 115 additions & 115 deletions .github/workflows/arduino_esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,129 +15,129 @@ name: arduino_esp32

on:
push:
branches: [ '**' ]
branches: ["**"]
pull_request:
branches: [ '**' ]
branches: ["**"]

jobs:
build:

name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2

- name: Install requirements
run: |
echo "No requirements need to be installed"
- name: Install PlatformIO
run: |
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
. $HOME/.platformio/penv/bin/activate
platformio update
- name: Set up project
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
mkdir -p $ARDUINO_BASE
cd $ARDUINO_BASE
platformio init -b esp32thing_plus --project-option="build_flags=-DZ_LINK_BLUETOOTH=1 -DZENOH_DEBUG=3"
cd $ARDUINO_BASE/lib
ln -s $ZENOH_PICO_BASE
cd $ARDUINO_BASE
- name: Build z_pub example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_pub.ino
cd $ARDUINO_BASE
platformio run
- name: Build z_sub example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_sub.ino
cd $ARDUINO_BASE
platformio run
- name: Build z_pull example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_pull.ino
cd $ARDUINO_BASE
platformio run
- name: Build z_get example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_get.ino
cd $ARDUINO_BASE
platformio run
- name: Build z_queryable example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_queryable.ino
cd $ARDUINO_BASE
platformio run
- name: Build z_scout example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_scout.ino
cd $ARDUINO_BASE
platformio run
- uses: actions/checkout@v2

- name: Install requirements
run: |
echo "No requirements need to be installed"
- name: Install PlatformIO
run: |
curl -fsSL -o get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py
python3 get-platformio.py
. $HOME/.platformio/penv/bin/activate
platformio update
- name: Set up project
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
mkdir -p $ARDUINO_BASE
cd $ARDUINO_BASE
platformio init -b esp32thing_plus --project-option="build_flags=-DZ_LINK_BLUETOOTH=1 -DZENOH_DEBUG=3"
cd $ARDUINO_BASE/lib
ln -s $ZENOH_PICO_BASE
cd $ARDUINO_BASE
- name: Build z_pub example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_pub.ino
cd $ARDUINO_BASE
platformio run
- name: Build z_sub example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_sub.ino
cd $ARDUINO_BASE
platformio run
- name: Build z_pull example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_pull.ino
cd $ARDUINO_BASE
platformio run
- name: Build z_get example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_get.ino
cd $ARDUINO_BASE
platformio run
- name: Build z_queryable example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_queryable.ino
cd $ARDUINO_BASE
platformio run
- name: Build z_scout example
run: |
cd $HOME
export ARDUINO_BASE=$HOME/work/arduino_esp32project/
export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/
. $HOME/.platformio/penv/bin/activate
rm -rf $ARDUINO_BASE/src/*
cd $ARDUINO_BASE/src
ln -s $ZENOH_PICO_BASE/examples/arduino/z_scout.ino
cd $ARDUINO_BASE
platformio run
Loading

0 comments on commit 88cb8ec

Please sign in to comment.