From 410848a62ebfd8335218df893a6c828ac8bdf7e1 Mon Sep 17 00:00:00 2001 From: Pierre Avital Date: Mon, 21 Aug 2023 18:40:24 +0200 Subject: [PATCH] fix platformio fetch link --- .github/workflows/arduino_esp32.yaml | 229 +++++++++++++------------- .github/workflows/espidf.yaml | 229 +++++++++++++------------- .github/workflows/mbed.yaml | 229 +++++++++++++------------- .github/workflows/zephyr.yaml | 235 +++++++++++++-------------- 4 files changed, 459 insertions(+), 463 deletions(-) diff --git a/.github/workflows/arduino_esp32.yaml b/.github/workflows/arduino_esp32.yaml index d54477ee0..5b313a503 100644 --- a/.github/workflows/arduino_esp32.yaml +++ b/.github/workflows/arduino_esp32.yaml @@ -15,129 +15,128 @@ 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: | + python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core-installer/master/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 diff --git a/.github/workflows/espidf.yaml b/.github/workflows/espidf.yaml index 181b60af4..c8b037449 100644 --- a/.github/workflows/espidf.yaml +++ b/.github/workflows/espidf.yaml @@ -15,129 +15,128 @@ name: espidf 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 ESPIDF_BASE=$HOME/work/espidfproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - mkdir -p $ESPIDF_BASE - cd $ESPIDF_BASE - platformio init -b az-delivery-devkit-v4 --project-option="framework=espidf" --project-option="build_flags=-DZENOH_ESPIDF -DZENOH_DEBUG=3" - - cd $ESPIDF_BASE/lib - ln -s $ZENOH_PICO_BASE - - cd $ESPIDF_BASE - - - name: Build z_pub example - run: | - cd $HOME - export ESPIDF_BASE=$HOME/work/espidfproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ESPIDF_BASE/src/* - cd $ESPIDF_BASE/src - ln -s $ZENOH_PICO_BASE/examples/espidf/z_pub.c - - cd $ESPIDF_BASE - platformio run - - - name: Build z_sub example - run: | - cd $HOME - export ESPIDF_BASE=$HOME/work/espidfproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ESPIDF_BASE/src/* - cd $ESPIDF_BASE/src - ln -s $ZENOH_PICO_BASE/examples/espidf/z_sub.c - - cd $ESPIDF_BASE - platformio run - - - name: Build z_pull example - run: | - cd $HOME - export ESPIDF_BASE=$HOME/work/espidfproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ESPIDF_BASE/src/* - cd $ESPIDF_BASE/src - ln -s $ZENOH_PICO_BASE/examples/espidf/z_pull.c - - cd $ESPIDF_BASE - platformio run - - - name: Build z_get example - run: | - cd $HOME - export ESPIDF_BASE=$HOME/work/espidfproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ESPIDF_BASE/src/* - cd $ESPIDF_BASE/src - ln -s $ZENOH_PICO_BASE/examples/espidf/z_get.c - - cd $ESPIDF_BASE - platformio run - - - name: Build z_queryable example - run: | - cd $HOME - export ESPIDF_BASE=$HOME/work/espidfproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ESPIDF_BASE/src/* - cd $ESPIDF_BASE/src - ln -s $ZENOH_PICO_BASE/examples/espidf/z_queryable.c - - cd $ESPIDF_BASE - platformio run - - - name: Build z_scout example - run: | - cd $HOME - export ESPIDF_BASE=$HOME/work/espidfproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ESPIDF_BASE/src/* - cd $ESPIDF_BASE/src - ln -s $ZENOH_PICO_BASE/examples/espidf/z_scout.c - - cd $ESPIDF_BASE - platformio run + - 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-core-installer/master/get-platformio.py)" + . $HOME/.platformio/penv/bin/activate + platformio update + + - name: Set up project + run: | + cd $HOME + export ESPIDF_BASE=$HOME/work/espidfproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + mkdir -p $ESPIDF_BASE + cd $ESPIDF_BASE + platformio init -b az-delivery-devkit-v4 --project-option="framework=espidf" --project-option="build_flags=-DZENOH_ESPIDF -DZENOH_DEBUG=3" + + cd $ESPIDF_BASE/lib + ln -s $ZENOH_PICO_BASE + + cd $ESPIDF_BASE + + - name: Build z_pub example + run: | + cd $HOME + export ESPIDF_BASE=$HOME/work/espidfproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ESPIDF_BASE/src/* + cd $ESPIDF_BASE/src + ln -s $ZENOH_PICO_BASE/examples/espidf/z_pub.c + + cd $ESPIDF_BASE + platformio run + + - name: Build z_sub example + run: | + cd $HOME + export ESPIDF_BASE=$HOME/work/espidfproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ESPIDF_BASE/src/* + cd $ESPIDF_BASE/src + ln -s $ZENOH_PICO_BASE/examples/espidf/z_sub.c + + cd $ESPIDF_BASE + platformio run + + - name: Build z_pull example + run: | + cd $HOME + export ESPIDF_BASE=$HOME/work/espidfproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ESPIDF_BASE/src/* + cd $ESPIDF_BASE/src + ln -s $ZENOH_PICO_BASE/examples/espidf/z_pull.c + + cd $ESPIDF_BASE + platformio run + + - name: Build z_get example + run: | + cd $HOME + export ESPIDF_BASE=$HOME/work/espidfproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ESPIDF_BASE/src/* + cd $ESPIDF_BASE/src + ln -s $ZENOH_PICO_BASE/examples/espidf/z_get.c + + cd $ESPIDF_BASE + platformio run + + - name: Build z_queryable example + run: | + cd $HOME + export ESPIDF_BASE=$HOME/work/espidfproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ESPIDF_BASE/src/* + cd $ESPIDF_BASE/src + ln -s $ZENOH_PICO_BASE/examples/espidf/z_queryable.c + + cd $ESPIDF_BASE + platformio run + + - name: Build z_scout example + run: | + cd $HOME + export ESPIDF_BASE=$HOME/work/espidfproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ESPIDF_BASE/src/* + cd $ESPIDF_BASE/src + ln -s $ZENOH_PICO_BASE/examples/espidf/z_scout.c + + cd $ESPIDF_BASE + platformio run diff --git a/.github/workflows/mbed.yaml b/.github/workflows/mbed.yaml index 3c691cd5e..b4cc500f2 100644 --- a/.github/workflows/mbed.yaml +++ b/.github/workflows/mbed.yaml @@ -15,129 +15,128 @@ name: mbed 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 MBED_BASE=$HOME/work/mbedproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - mkdir -p $MBED_BASE - cd $MBED_BASE - pio init -b nucleo_f767zi --project-option="framework=mbed" --project-option="build_flags=-DZ_LINK_SERIAL=1 -DZENOH_DEBUG=3" - - cd $MBED_BASE/lib - ln -s $ZENOH_PICO_BASE - - cd $MBED_BASE - - - name: Build z_pub example - run: | - cd $HOME - export MBED_BASE=$HOME/work/mbedproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $MBED_BASE/src/* - cd $MBED_BASE/src - ln -s $ZENOH_PICO_BASE/examples/mbed/z_pub.cpp - - cd $MBED_BASE - platformio run - - - name: Build z_sub example - run: | - cd $HOME - export MBED_BASE=$HOME/work/mbedproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $MBED_BASE/src/* - cd $MBED_BASE/src - ln -s $ZENOH_PICO_BASE/examples/mbed/z_sub.cpp - - cd $MBED_BASE - platformio run - - - name: Build z_pull example - run: | - cd $HOME - export MBED_BASE=$HOME/work/mbedproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $MBED_BASE/src/* - cd $MBED_BASE/src - ln -s $ZENOH_PICO_BASE/examples/mbed/z_pull.cpp - - cd $MBED_BASE - platformio run - - - name: Build z_get example - run: | - cd $HOME - export MBED_BASE=$HOME/work/mbedproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $MBED_BASE/src/* - cd $MBED_BASE/src - ln -s $ZENOH_PICO_BASE/examples/mbed/z_get.cpp - - cd $MBED_BASE - platformio run - - - name: Build z_queryable example - run: | - cd $HOME - export MBED_BASE=$HOME/work/mbedproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $MBED_BASE/src/* - cd $MBED_BASE/src - ln -s $ZENOH_PICO_BASE/examples/mbed/z_queryable.cpp - - cd $MBED_BASE - platformio run - - - name: Build z_scout example - run: | - cd $HOME - export MBED_BASE=$HOME/work/mbedproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $MBED_BASE/src/* - cd $MBED_BASE/src - ln -s $ZENOH_PICO_BASE/examples/mbed/z_scout.cpp - - cd $MBED_BASE - platformio run + - 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-core-installer/master/get-platformio.py)" + . $HOME/.platformio/penv/bin/activate + platformio update + + - name: Set up project + run: | + cd $HOME + export MBED_BASE=$HOME/work/mbedproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + mkdir -p $MBED_BASE + cd $MBED_BASE + pio init -b nucleo_f767zi --project-option="framework=mbed" --project-option="build_flags=-DZ_LINK_SERIAL=1 -DZENOH_DEBUG=3" + + cd $MBED_BASE/lib + ln -s $ZENOH_PICO_BASE + + cd $MBED_BASE + + - name: Build z_pub example + run: | + cd $HOME + export MBED_BASE=$HOME/work/mbedproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $MBED_BASE/src/* + cd $MBED_BASE/src + ln -s $ZENOH_PICO_BASE/examples/mbed/z_pub.cpp + + cd $MBED_BASE + platformio run + + - name: Build z_sub example + run: | + cd $HOME + export MBED_BASE=$HOME/work/mbedproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $MBED_BASE/src/* + cd $MBED_BASE/src + ln -s $ZENOH_PICO_BASE/examples/mbed/z_sub.cpp + + cd $MBED_BASE + platformio run + + - name: Build z_pull example + run: | + cd $HOME + export MBED_BASE=$HOME/work/mbedproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $MBED_BASE/src/* + cd $MBED_BASE/src + ln -s $ZENOH_PICO_BASE/examples/mbed/z_pull.cpp + + cd $MBED_BASE + platformio run + + - name: Build z_get example + run: | + cd $HOME + export MBED_BASE=$HOME/work/mbedproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $MBED_BASE/src/* + cd $MBED_BASE/src + ln -s $ZENOH_PICO_BASE/examples/mbed/z_get.cpp + + cd $MBED_BASE + platformio run + + - name: Build z_queryable example + run: | + cd $HOME + export MBED_BASE=$HOME/work/mbedproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $MBED_BASE/src/* + cd $MBED_BASE/src + ln -s $ZENOH_PICO_BASE/examples/mbed/z_queryable.cpp + + cd $MBED_BASE + platformio run + + - name: Build z_scout example + run: | + cd $HOME + export MBED_BASE=$HOME/work/mbedproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $MBED_BASE/src/* + cd $MBED_BASE/src + ln -s $ZENOH_PICO_BASE/examples/mbed/z_scout.cpp + + cd $MBED_BASE + platformio run diff --git a/.github/workflows/zephyr.yaml b/.github/workflows/zephyr.yaml index acc52a51d..32136c638 100644 --- a/.github/workflows/zephyr.yaml +++ b/.github/workflows/zephyr.yaml @@ -15,132 +15,131 @@ name: zephyr 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 ZEPHYR_BASE=$HOME/work/zephyrproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - mkdir -p $ZEPHYR_BASE - cd $ZEPHYR_BASE - pio init -b nucleo_f767zi --project-option="framework=zephyr" --project-option="build_flags=-DZ_LINK_SERIAL=1 -DZENOH_DEBUG=3" - - cd $ZEPHYR_BASE/lib - ln -s $ZENOH_PICO_BASE - - mkdir -p $ZEPHYR_BASE/zephyr - cd $ZEPHYR_BASE/zephyr - ln -s $ZENOH_PICO_BASE/docs/zephyr/nucleo_f767zi/prj.conf prj.conf - ln -s $ZENOH_PICO_BASE/docs/zephyr/nucleo_f767zi/CMakeLists.txt CMakeLists.txt - - - name: Build z_pub example - run: | - cd $HOME - export ZEPHYR_BASE=$HOME/work/zephyrproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ZEPHYR_BASE/src/* - cd $ZEPHYR_BASE/src - ln -s $ZENOH_PICO_BASE/examples/zephyr/z_pub.c - - cd $ZEPHYR_BASE - platformio run - - - name: Build z_sub example - run: | - cd $HOME - export ZEPHYR_BASE=$HOME/work/zephyrproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ZEPHYR_BASE/src/* - cd $ZEPHYR_BASE/src - ln -s $ZENOH_PICO_BASE/examples/zephyr/z_sub.c - - cd $ZEPHYR_BASE - platformio run - - - name: Build z_pull example - run: | - cd $HOME - export ZEPHYR_BASE=$HOME/work/zephyrproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ZEPHYR_BASE/src/* - cd $ZEPHYR_BASE/src - ln -s $ZENOH_PICO_BASE/examples/zephyr/z_pull.c - - cd $ZEPHYR_BASE - platformio run - - - name: Build z_get example - run: | - cd $HOME - export ZEPHYR_BASE=$HOME/work/zephyrproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ZEPHYR_BASE/src/* - cd $ZEPHYR_BASE/src - ln -s $ZENOH_PICO_BASE/examples/zephyr/z_get.c - - cd $ZEPHYR_BASE - platformio run - - - name: Build z_queryable example - run: | - cd $HOME - export ZEPHYR_BASE=$HOME/work/zephyrproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ZEPHYR_BASE/src/* - cd $ZEPHYR_BASE/src - ln -s $ZENOH_PICO_BASE/examples/zephyr/z_queryable.c - - cd $ZEPHYR_BASE - platformio run - - - name: Build z_scout example - run: | - cd $HOME - export ZEPHYR_BASE=$HOME/work/zephyrproject/ - export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ - . $HOME/.platformio/penv/bin/activate - - rm -rf $ZEPHYR_BASE/src/* - cd $ZEPHYR_BASE/src - ln -s $ZENOH_PICO_BASE/examples/zephyr/z_scout.c - - cd $ZEPHYR_BASE - platformio run + - 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-core-installer/master/get-platformio.py)" + . $HOME/.platformio/penv/bin/activate + platformio update + + - name: Set up project + run: | + cd $HOME + export ZEPHYR_BASE=$HOME/work/zephyrproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + mkdir -p $ZEPHYR_BASE + cd $ZEPHYR_BASE + pio init -b nucleo_f767zi --project-option="framework=zephyr" --project-option="build_flags=-DZ_LINK_SERIAL=1 -DZENOH_DEBUG=3" + + cd $ZEPHYR_BASE/lib + ln -s $ZENOH_PICO_BASE + + mkdir -p $ZEPHYR_BASE/zephyr + cd $ZEPHYR_BASE/zephyr + ln -s $ZENOH_PICO_BASE/docs/zephyr/nucleo_f767zi/prj.conf prj.conf + ln -s $ZENOH_PICO_BASE/docs/zephyr/nucleo_f767zi/CMakeLists.txt CMakeLists.txt + + - name: Build z_pub example + run: | + cd $HOME + export ZEPHYR_BASE=$HOME/work/zephyrproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ZEPHYR_BASE/src/* + cd $ZEPHYR_BASE/src + ln -s $ZENOH_PICO_BASE/examples/zephyr/z_pub.c + + cd $ZEPHYR_BASE + platformio run + + - name: Build z_sub example + run: | + cd $HOME + export ZEPHYR_BASE=$HOME/work/zephyrproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ZEPHYR_BASE/src/* + cd $ZEPHYR_BASE/src + ln -s $ZENOH_PICO_BASE/examples/zephyr/z_sub.c + + cd $ZEPHYR_BASE + platformio run + + - name: Build z_pull example + run: | + cd $HOME + export ZEPHYR_BASE=$HOME/work/zephyrproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ZEPHYR_BASE/src/* + cd $ZEPHYR_BASE/src + ln -s $ZENOH_PICO_BASE/examples/zephyr/z_pull.c + + cd $ZEPHYR_BASE + platformio run + + - name: Build z_get example + run: | + cd $HOME + export ZEPHYR_BASE=$HOME/work/zephyrproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ZEPHYR_BASE/src/* + cd $ZEPHYR_BASE/src + ln -s $ZENOH_PICO_BASE/examples/zephyr/z_get.c + + cd $ZEPHYR_BASE + platformio run + + - name: Build z_queryable example + run: | + cd $HOME + export ZEPHYR_BASE=$HOME/work/zephyrproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ZEPHYR_BASE/src/* + cd $ZEPHYR_BASE/src + ln -s $ZENOH_PICO_BASE/examples/zephyr/z_queryable.c + + cd $ZEPHYR_BASE + platformio run + + - name: Build z_scout example + run: | + cd $HOME + export ZEPHYR_BASE=$HOME/work/zephyrproject/ + export ZENOH_PICO_BASE=$HOME/work/zenoh-pico/zenoh-pico/ + . $HOME/.platformio/penv/bin/activate + + rm -rf $ZEPHYR_BASE/src/* + cd $ZEPHYR_BASE/src + ln -s $ZENOH_PICO_BASE/examples/zephyr/z_scout.c + + cd $ZEPHYR_BASE + platformio run