mirror of
https://github.com/me-no-dev/AsyncTCP.git
synced 2025-08-21 13:31:26 +02:00
CI update
This commit is contained in:
@@ -28,14 +28,39 @@ jobs:
|
|||||||
LWIP_IPV6: true
|
LWIP_IPV6: true
|
||||||
run: arduino-cli --config-file ${{ matrix.config }} --library ./src/ compile --fqbn esp32:esp32:esp32 ./examples/ClientServer/Client/Client.ino
|
run: arduino-cli --config-file ${{ matrix.config }} --library ./src/ compile --fqbn esp32:esp32:esp32 ./examples/ClientServer/Client/Client.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 }}
|
||||||
|
|
||||||
build-pio:
|
build-pio:
|
||||||
name: ${{ matrix.board }} ${{ matrix.env }}
|
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:
|
||||||
board: [esp32dev, esp32-s3-devkitc-1]
|
environment: ${{ fromJSON(needs.pio_envs.outputs.pio_default_envs) }}
|
||||||
env: [arduino-2, arduino-3]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
@@ -43,34 +68,15 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
~/.platformio
|
~/.platformio
|
||||||
~/.cache/pip
|
~/.cache/pip
|
||||||
key: ${{ matrix.env }}
|
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: sed -i -e 's/esp32dev/${{ matrix.board }}/g' platformio.ini
|
|
||||||
- run: pio run -e ${{ matrix.env }}
|
|
||||||
|
|
||||||
build-pioarduino:
|
- name: Install platformio
|
||||||
name: ${{ matrix.board }} ${{ matrix.env }}
|
run: |
|
||||||
runs-on: ubuntu-latest
|
python -m pip install --upgrade pip
|
||||||
strategy:
|
pip install --upgrade platformio
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
board: [esp32-c6-devkitc-1]
|
|
||||||
env: [pioarduino]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.platformio
|
|
||||||
~/.cache/pip
|
|
||||||
key: ${{ matrix.env }}
|
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.x"
|
|
||||||
- run: pip install platformio
|
|
||||||
- run: sed -i -e 's/esp32-c6-devkitc-1/${{ matrix.board }}/g' platformio.ini
|
|
||||||
- run: pio run -e ${{ matrix.env }}
|
|
||||||
|
|
||||||
|
- run: PLATFORMIO_SRC_DIR=examples/ClientServer/Client pio run -e ${{ matrix.environment }}
|
@@ -27,6 +27,22 @@ platform_packages=
|
|||||||
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.3/esp32-arduino-libs-3.0.3.zip
|
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.3/esp32-arduino-libs-3.0.3.zip
|
||||||
board = esp32dev
|
board = esp32dev
|
||||||
|
|
||||||
[env:pioarduino]
|
[env:pioarduino-esp32dev]
|
||||||
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
|
||||||
|
board = esp32dev
|
||||||
|
|
||||||
|
[env:pioarduino-esp32-s2]
|
||||||
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
|
||||||
|
board = esp32-s2-saola-1
|
||||||
|
|
||||||
|
[env:pioarduino-esp32-s3]
|
||||||
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
|
||||||
|
board = esp32-s3-devkitc-1
|
||||||
|
|
||||||
|
[env:pioarduino-esp32-c3]
|
||||||
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
|
||||||
|
board = esp32-c3-devkitc-02
|
||||||
|
|
||||||
|
[env:pioarduino-esp32-c6]
|
||||||
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
|
||||||
board = esp32-c6-devkitc-1
|
board = esp32-c6-devkitc-1
|
||||||
|
Reference in New Issue
Block a user