forked from espressif/esp-protocols
29 lines
876 B
YAML
29 lines
876 B
YAML
name: Build ASIO
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
idf_ver: ["latest"]
|
|
idf_target: ["esp32", "esp32s2"]
|
|
example: ["asio_chat", "async_request", "socks4", "ssl_client_server", "tcp_echo_server", "udp_echo_server"]
|
|
|
|
runs-on: ubuntu-20.04
|
|
container: espressif/idf:${{ matrix.idf_ver }}
|
|
steps:
|
|
- name: Checkout esp-protocols
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: esp-protocols
|
|
- name: Build ${{ matrix.example }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
|
|
env:
|
|
IDF_TARGET: ${{ matrix.idf_target }}
|
|
shell: bash
|
|
run: |
|
|
. ${IDF_PATH}/export.sh
|
|
cd $GITHUB_WORKSPACE/esp-protocols/components/asio/examples/${{ matrix.example }}
|
|
idf.py set-target ${{ matrix.idf_target }}
|
|
idf.py build
|