diff options
| author | Elliot Matson <ematson5897@gmail.com> | 2023-01-29 21:53:57 -0600 |
|---|---|---|
| committer | Elliot Matson <ematson5897@gmail.com> | 2023-01-29 21:53:57 -0600 |
| commit | fda92b77af1a341c8f55ee04100b099222cb898a (patch) | |
| tree | e7c5fb6ab5b418292f73f1d57e6292ffbf6c2305 | |
| parent | 9901c2352d9ad9b33e46688c5dbfb2bf7c5e68fa (diff) | |
Add final switch to IDF
| -rw-r--r-- | .github/workflows/pio_build.yml | 14 | ||||
| -rw-r--r-- | examples/PIO_TestPatterns/src/main.cpp | 4 |
2 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/pio_build.yml b/.github/workflows/pio_build.yml index a2e9190..af4cb29 100644 --- a/.github/workflows/pio_build.yml +++ b/.github/workflows/pio_build.yml @@ -23,6 +23,7 @@ jobs: no_fast_functions: ["", -DNO_FAST_FUNCTIONS] no_cie1931: ["", -DNO_CIE1931] virtual_panel: ["", -DVIRTUAL_PANE] + idf: [true, false] exclude: - no_fast_functions: "" virtual_panel: -DVIRTUAL_PANE @@ -43,10 +44,15 @@ jobs: python-version: '3.x' - name: Install Platformio run: pip install --upgrade platformio - - name: Run PlatformIO + - name: Run PlatformIO CI (Arduino) + if: ${{ !matrix.idf}} env: PLATFORMIO_BUILD_FLAGS: ${{ matrix.no_gfx }} ${{ matrix.no_fast_functions }} ${{ matrix.no_cie1931 }} ${{ matrix.virtual_panel }} PLATFORMIO_CI_SRC: ${{ matrix.example }} -# run: pio ci -e esp32 -c ${{ matrix.example }}/platformio.ini - run: pio ci -v -e esp32idf -c ${{ matrix.example }}/platformio.ini -# run: pio run -d ${{ matrix.example }} -e esp32idf -c ${{ matrix.example }}/platformio.ini
\ No newline at end of file + run: pio ci -e esp32 -c ${{ matrix.example }}/platformio.ini + - name: Run PlatformIO CI (ESP-IDF) + if: ${{ matrix.idf }} + env: + PLATFORMIO_BUILD_FLAGS: -DIDF_BUILD ${{ matrix.no_gfx }} ${{ matrix.no_fast_functions }} ${{ matrix.no_cie1931 }} ${{ matrix.virtual_panel }} + # pio ci doesn't use our sdkconfig, so we have to use pio run + run: pio run -d ${{ matrix.example }} -e esp32idf -c ${{ matrix.example }}/platformio.ini diff --git a/examples/PIO_TestPatterns/src/main.cpp b/examples/PIO_TestPatterns/src/main.cpp index 83abcc3..40d077e 100644 --- a/examples/PIO_TestPatterns/src/main.cpp +++ b/examples/PIO_TestPatterns/src/main.cpp @@ -1,13 +1,13 @@ // How to use this library with a FM6126 panel, thanks goes to: // https://github.com/hzeller/rpi-rgb-led-matrix/issues/746 -//#ifdef IDF_BUILD +#ifdef IDF_BUILD #include <stdio.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <driver/gpio.h> #include "sdkconfig.h" -//#endif +#endif #include <Arduino.h> #include "xtensa/core-macros.h" |
