ESP32-HUB75-MatrixPanel-DMA/.github/workflows/pio_arduino_build.yml

64 lines
2 KiB
YAML
Raw Normal View History

# 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 CI
on:
push:
branches: [ master, dev ]
paths-ignore:
- '**.md'
- 'doc/**'
pull_request:
branches: [ master, dev ]
paths-ignore:
- '**.md'
- 'doc/**'
jobs:
build:
2023-01-30 04:20:47 +01:00
runs-on: ubuntu-latest
strategy:
matrix:
2023-01-30 05:02:30 +01:00
framework: ["Arduino", "IDF"]
2023-01-30 03:25:59 +01:00
no_gfx: ["", -DNO_GFX]
2023-03-12 11:29:08 +01:00
# no_fast_functions: ["", -DNO_FAST_FUNCTIONS]
# no_cie1931: ["", -DNO_CIE1931]
# virtual_panel: ["", -DVIRTUAL_PANE]
2023-01-30 05:02:30 +01:00
example:
- "examples/PIO_TestPatterns"
2023-03-13 01:11:32 +01:00
# exclude:
# - no_fast_functions: ""
# virtual_panel: -DVIRTUAL_PANE
steps:
2023-01-30 03:52:35 +01:00
- name: Checkout
uses: actions/checkout@v4
2023-01-30 03:52:35 +01:00
- name: Cache pip and platformio
uses: actions/cache@v3
with:
2023-01-30 03:52:35 +01:00
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Platformio
run: pip install --upgrade platformio==6.1.6
2023-01-30 04:53:57 +01:00
- name: Run PlatformIO CI (Arduino)
2023-01-30 05:02:30 +01:00
if: ${{ matrix.framework == 'Arduino'}}
env:
2023-01-30 03:44:02 +01:00
PLATFORMIO_BUILD_FLAGS: ${{ matrix.no_gfx }} ${{ matrix.no_fast_functions }} ${{ matrix.no_cie1931 }} ${{ matrix.virtual_panel }}
2023-01-30 04:25:24 +01:00
PLATFORMIO_CI_SRC: ${{ matrix.example }}
2023-01-30 04:53:57 +01:00
run: pio ci -e esp32 -c ${{ matrix.example }}/platformio.ini
- name: Run PlatformIO CI (ESP-IDF)
2023-01-30 05:02:30 +01:00
if: ${{ matrix.framework == 'IDF'}}
2023-01-30 04:53:57 +01:00
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