websocket: Initial version based on IDF 5.0

This commit is contained in:
gabsuren
2022-03-01 13:42:35 +04:00
parent b3c777ad43
commit 80c3cf0f02
18 changed files with 528 additions and 6 deletions

26
.github/workflows/build-websockets.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Build Websockets
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
idf_ver: ["latest"]
idf_target: ["esp32"]
runs-on: ubuntu-20.04
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- name: Checkout esp-protocols
uses: actions/checkout@master
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/esp_websocket_client/examples/
idf.py build

View File

@ -0,0 +1,39 @@
name: Docs and Publish Websockets
on:
push:
branches:
- master
jobs:
docs_build:
name: Docs-Build-And-Upload
runs-on: ubuntu-latest
steps:
- name: Checkout esp-protocols
uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
- name: Generate docs
run: |
sudo apt-get update
sudo apt-get -y install doxygen clang python3-pip git
sudo git clone https://github.com/espressif/esp-idf
python -m pip install breathe recommonmark
python -m pip install -r esp-idf/docs/requirements.txt
cd $GITHUB_WORKSPACE/components/esp_websocket_client/docs
./generate_docs
mkdir -p $GITHUB_WORKSPACE/docs/esp_websocket_client
cp -r html/. $GITHUB_WORKSPACE/docs/esp_websocket_client
cd $GITHUB_WORKSPACE/docs
touch .nojekyll
echo '<a href="esp_websocket_client/index.html">esp-websocket-client</a>' >> index.html
- name: Deploy generated docs.
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: docs