Skip to content

CI/CD: updated for esp32-arduino 3.0.0 #11

CI/CD: updated for esp32-arduino 3.0.0

CI/CD: updated for esp32-arduino 3.0.0 #11

name: PlatformIO builds
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
defaults:
run:
shell: bash
jobs:
platformio_info:
runs-on: ubuntu-latest
container: ghcr.io/pstolarz/platformio-ci
steps:
- name: PlatformIO recent packages versions info
run: |
cd /platformio-ard-ci && sudo platformio pkg list && sudo platformio pkg outdated
cd /platformio-idf-ci && sudo platformio pkg list && sudo platformio pkg outdated
platformio_ard_build:
runs-on: ubuntu-latest
container: ghcr.io/pstolarz/platformio-ci
strategy:
matrix:
plat:
- uno
- uno_wifi_rev2
- due
- esp32dev
- d1
- nucleo_l552ze_q
- pico
example:
- DallasTemperature
env:
BUILD_FLAGS: "\
-DOWNG_NO_NATIVE_CONFIG \
-DCONFIG_PWR_CTRL_ENABLED \
-DCONFIG_OVERDRIVE_ENABLED \
-DCONFIG_CRC16_ENABLED \
-DCONFIG_ITERATION_RETRIES=1"
steps:
- uses: actions/checkout@v3
- name: Build
run: |
repo_dir=$(pwd)
cd /platformio-ard-ci
cp ${repo_dir}/examples/arduino/${{ matrix.example }}/${{ matrix.example }}.ino \
src/${{ matrix.example }}.ino
sudo platformio pkg install -l ${repo_dir}
sudo PLATFORMIO_BUILD_FLAGS="${BUILD_FLAGS}" platformio run -e ${{ matrix.plat }}
platformio_idf_build:
runs-on: ubuntu-latest
container: ghcr.io/pstolarz/platformio-ci
strategy:
matrix:
plat:
- esp32-s2-saola-1
- esp32-c3-devkitm-1
example:
- DallasTemperature
env:
BUILD_FLAGS: "\
-DOWNG_NO_NATIVE_CONFIG \
-DCONFIG_PWR_CTRL_ENABLED \
-DCONFIG_OVERDRIVE_ENABLED \
-DCONFIG_CRC16_ENABLED \
-DCONFIG_ITERATION_RETRIES=1 \
-DCONFIG_OW_PIN=13"
steps:
- uses: actions/checkout@v3
- name: Build
run: |
repo_dir=$(pwd)
cd /platformio-idf-ci
cp ${repo_dir}/examples/esp-idf/${{ matrix.example }}/main/${{ matrix.example }}.cpp \
src/${{ matrix.example }}.cpp
sudo platformio pkg install -l ${repo_dir}
sudo PLATFORMIO_BUILD_FLAGS="${BUILD_FLAGS}" platformio run -e ${{ matrix.plat }}