From 5a586ff5e6ba3e0730da132a7dcc9a64ca28bfc9 Mon Sep 17 00:00:00 2001 From: Daan Steenbergen Date: Fri, 10 Nov 2023 17:48:41 +0100 Subject: [PATCH] ci: add platformio build --- .github/workflows/pio.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pio.yml diff --git a/.github/workflows/pio.yml b/.github/workflows/pio.yml new file mode 100644 index 00000000..53b65c14 --- /dev/null +++ b/.github/workflows/pio.yml @@ -0,0 +1,31 @@ +name: PlatformIO CI + +on: [push] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + example: [examples/virtual_terminal/esp32_platformio_object_pool] + + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + - name: Install PlatformIO Core + run: pip install --upgrade platformio + + - name: Build PlatformIO examples + run: pio ci --lib="." --lib="${{ matrix.example }}" --board=denky32 + env: + PLATFORMIO_CI_SRC: ${{ matrix.example }} + PLATFORMIO_BUILD_FLAGS: -I/include \ No newline at end of file