mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-08-02 20:24:40 +02:00
Use pio file for CI
This commit is contained in:
79
.github/workflows/ci.yml
vendored
79
.github/workflows/ci.yml
vendored
@@ -64,58 +64,57 @@ jobs:
|
|||||||
- name: Build Filters
|
- name: Build Filters
|
||||||
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Filters/Filters.ino"
|
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Filters/Filters.ino"
|
||||||
|
|
||||||
|
pio_envs:
|
||||||
|
name: Get PlatformIO Envs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
key: pip
|
||||||
|
path: ~/.cache/pip
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
|
- name: Install PlatformIO
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install --upgrade platformio
|
||||||
|
- name: Get Envs
|
||||||
|
id: envs
|
||||||
|
run: |
|
||||||
|
echo "pio_default_envs=$(pio project config --json-output | jq -cr '[ .[][0] | select(startswith("env:") and (endswith("-debug")|not)) | .[4:] ]')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
pio_default_envs: ${{ steps.envs.outputs.pio_default_envs }}
|
||||||
|
|
||||||
platformio:
|
platformio:
|
||||||
name: pio ${{ matrix.name }}
|
name: "pio:${{ matrix.environment }}"
|
||||||
|
needs: [pio_envs]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
environment: ${{ fromJSON(needs.pio_envs.outputs.pio_default_envs) }}
|
||||||
- name: esp32dev|arduino
|
|
||||||
board: esp32dev
|
|
||||||
platform: espressif32
|
|
||||||
opts:
|
|
||||||
- name: esp32dev|arduino-2
|
|
||||||
board: esp32dev
|
|
||||||
platform: espressif32@6.7.0
|
|
||||||
opts:
|
|
||||||
- name: esp32dev|arduino-3
|
|
||||||
board: esp32dev
|
|
||||||
platform: espressif32
|
|
||||||
opts: "--project-option 'platform_packages=platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1, platform_packages=platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip'"
|
|
||||||
- name: esp32-s3-devkitc-1|arduino
|
|
||||||
board: esp32-s3-devkitc-1
|
|
||||||
platform: espressif32
|
|
||||||
opts:
|
|
||||||
- name: esp32-s3-devkitc-1|arduino-2
|
|
||||||
board: esp32-s3-devkitc-1
|
|
||||||
platform: espressif32@6.7.0
|
|
||||||
opts:
|
|
||||||
- name: esp32-s3-devkitc-1|arduino-3
|
|
||||||
board: esp32-s3-devkitc-1
|
|
||||||
platform: espressif32
|
|
||||||
opts: "--project-option 'platform_packages=platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1, platform_packages=platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip'"
|
|
||||||
- name: huzzah|espressif8266
|
|
||||||
board: huzzah
|
|
||||||
platform: espressif8266
|
|
||||||
opts:
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up cache
|
- uses: actions/cache@v4
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.platformio
|
~/.platformio
|
||||||
~/.cache/pip
|
~/.cache/pip
|
||||||
key: ${{ matrix.name }}
|
key: pio
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
- run: pip install platformio
|
- run: pip install platformio
|
||||||
- run: platformio platform install ${{ matrix.platform }}
|
|
||||||
- name: Build CaptivePortal
|
- name: Install platformio
|
||||||
run: platformio ci "examples/CaptivePortal/CaptivePortal.ino" -l '.' -b ${{ matrix.board }} ${{ matrix.opts }}
|
run: |
|
||||||
- name: Build SimpleServer
|
python -m pip install --upgrade pip
|
||||||
run: platformio ci "examples/SimpleServer/SimpleServer.ino" -l '.' -b ${{ matrix.board }} ${{ matrix.opts }}
|
pip install --upgrade platformio
|
||||||
- name: Build Filters
|
|
||||||
run: platformio ci "examples/Filters/Filters.ino" -l '.' -b ${{ matrix.board }} ${{ matrix.opts }}
|
- run: PLATFORMIO_SRC_DIR=examples/CaptivePortal pio run -e ${{ matrix.environment }}
|
||||||
|
- run: PLATFORMIO_SRC_DIR=examples/SimpleServer pio run -e ${{ matrix.environment }}
|
||||||
|
- run: PLATFORMIO_SRC_DIR=examples/Filters pio run -e ${{ matrix.environment }}
|
||||||
|
Reference in New Issue
Block a user