From 0dba05b64a29c432efa1709b6ef16069e8f2be1d Mon Sep 17 00:00:00 2001 From: SpiroC Date: Fri, 21 Feb 2025 15:58:47 +1100 Subject: Fix the build --- .github/workflows/pio_arduino_build.yml | 64 ++++++++++++++++++++++++ .github/workflows/pio_arduino_build.yml.disabled | 64 ------------------------ 2 files changed, 64 insertions(+), 64 deletions(-) create mode 100644 .github/workflows/pio_arduino_build.yml delete mode 100644 .github/workflows/pio_arduino_build.yml.disabled diff --git a/.github/workflows/pio_arduino_build.yml b/.github/workflows/pio_arduino_build.yml new file mode 100644 index 0000000..4c68d8b --- /dev/null +++ b/.github/workflows/pio_arduino_build.yml @@ -0,0 +1,64 @@ +# Build examples with Platformio +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions +# https://docs.platformio.org/en/latest/integration/ci/github-actions.html + +name: PlatformIO 6.1.11 Arduino CI + +on: + push: + branches: [ master, dev ] + paths-ignore: + - '**.md' + - 'doc/**' + pull_request: + branches: [ master, dev ] + paths-ignore: + - '**.md' + - 'doc/**' + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + framework: ["Arduino", "IDF"] + no_gfx: ["", -DNO_GFX] +# no_fast_functions: ["", -DNO_FAST_FUNCTIONS] +# no_cie1931: ["", -DNO_CIE1931] +# virtual_panel: ["", -DVIRTUAL_PANE] + example: + - "examples/PIO_TestPatterns" +# exclude: +# - no_fast_functions: "" +# virtual_panel: -DVIRTUAL_PANE + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Cache pip and platformio + uses: actions/cache@v4 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + - name: Set up Python 3.x + uses: actions/setup-python@v5 + with: + python-version: '3.x' + - name: Install Platformio + run: pip install --upgrade platformio==6.1.17 + - name: Run PlatformIO CI (Arduino) + if: ${{ matrix.framework == 'Arduino'}} + 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 + - name: Run PlatformIO CI (ESP-IDF) + if: ${{ matrix.framework == '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 + run: pio run -d ${{ matrix.example }} diff --git a/.github/workflows/pio_arduino_build.yml.disabled b/.github/workflows/pio_arduino_build.yml.disabled deleted file mode 100644 index e3d832e..0000000 --- a/.github/workflows/pio_arduino_build.yml.disabled +++ /dev/null @@ -1,64 +0,0 @@ -# Build examples with Platformio -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions -# https://docs.platformio.org/en/latest/integration/ci/github-actions.html - -name: PlatformIO 6.1.11 Arduino CI - -on: - push: - branches: [ master, dev ] - paths-ignore: - - '**.md' - - 'doc/**' - pull_request: - branches: [ master, dev ] - paths-ignore: - - '**.md' - - 'doc/**' - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - framework: ["Arduino", "IDF"] - no_gfx: ["", -DNO_GFX] -# no_fast_functions: ["", -DNO_FAST_FUNCTIONS] -# no_cie1931: ["", -DNO_CIE1931] -# virtual_panel: ["", -DVIRTUAL_PANE] - example: - - "examples/PIO_TestPatterns" -# exclude: -# - no_fast_functions: "" -# virtual_panel: -DVIRTUAL_PANE - - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Cache pip and platformio - uses: actions/cache@v4 - with: - path: | - ~/.cache/pip - ~/.platformio/.cache - key: ${{ runner.os }}-pio - - name: Set up Python 3.x - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - name: Install Platformio - run: pip install --upgrade platformio==6.1.11 - - name: Run PlatformIO CI (Arduino) - if: ${{ matrix.framework == 'Arduino'}} - 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 - - name: Run PlatformIO CI (ESP-IDF) - if: ${{ matrix.framework == '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 - run: pio run -d ${{ matrix.example }} -- cgit v1.3.1 From a3298cc7a2d9574ad350efb8aeac1249dd35a7aa Mon Sep 17 00:00:00 2001 From: SpiroC Date: Fri, 21 Feb 2025 16:03:29 +1100 Subject: Update the build name --- .github/workflows/pio_arduino_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pio_arduino_build.yml b/.github/workflows/pio_arduino_build.yml index 4c68d8b..49447ab 100644 --- a/.github/workflows/pio_arduino_build.yml +++ b/.github/workflows/pio_arduino_build.yml @@ -2,7 +2,7 @@ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions # https://docs.platformio.org/en/latest/integration/ci/github-actions.html -name: PlatformIO 6.1.11 Arduino CI +name: PlatformIO 6.1.17 Arduino CI on: push: -- cgit v1.3.1