Skip to content

Commit

Permalink
fix(console): Fixed branch with ping component removal
Browse files Browse the repository at this point in the history
  • Loading branch information
espressif-abhikroy committed Oct 19, 2023
1 parent deae5db commit 091cd8a
Show file tree
Hide file tree
Showing 16 changed files with 61 additions and 626 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/console_cmd_ping__build.yml

This file was deleted.

111 changes: 55 additions & 56 deletions .github/workflows/publish-docs-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Publish Tag, Release, Docs, Component
runs-on: ubuntu-latest
# Skip running on forks since it won't have access to secrets
if: github.repository == 'espressif/esp-protocols'
#if: github.repository == 'espressif/esp-protocols'
steps:
- name: Checkout esp-protocols
uses: actions/checkout@v3
Expand All @@ -43,58 +43,57 @@ jobs:
tag_name: ${{ env.BUMP_TAG }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate docs
shell: bash
run: |
sudo apt-get update
sudo apt-get -y install doxygen clang python3-pip
python -m pip install breathe recommonmark esp-docs==1.4.1
for comp in `ls components`; do
if [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
cd $GITHUB_WORKSPACE/docs/${comp}
if [[ "${{ env.BUMP_COMPONENT }}" == "${comp}" ]]; then
echo "Building specific version of ${comp} (${{ env.BUMP_VERSION }})"
./generate_docs ${{ env.BUMP_VERSION }}
else
echo "Building latest version of ${comp}"
./generate_docs
fi
fi
done
- name: Deploying generated docs
shell: bash
run: |
source $GITHUB_WORKSPACE/docs/utils.sh
add_doc_server_ssh_keys $DOCS_DEPLOY_KEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
export GIT_VER=$(git describe --always)
export GITHUB_REF_NAME=latest
for comp in `ls components`; do
if [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
echo "Deploying latest of ${comp}"
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/${comp}
export DOCS_DEPLOY_PATH=$DOCS_DEPLOY_PATH_ORIG/${comp}
cd $GITHUB_WORKSPACE/docs/${comp}
deploy-docs
fi
done;
# Deploy docs with version path
if [[ "${{ env.BUMP_VERSION }}" != "" ]] && [[ -d $GITHUB_WORKSPACE/docs/${{ env.BUMP_COMPONENT }} ]]; then
echo "Deploying specific version of ${{ env.BUMP_COMPONENT }} (${{ env.BUMP_VERSION }})"
cd $GITHUB_WORKSPACE/docs/${{ env.BUMP_COMPONENT }}
export GITHUB_REF_NAME=${{ env.BUMP_VERSION }}
deploy-docs
fi
- name: Upload components to component service
uses: espressif/upload-components-ci-action@v1
with:
directories: >
components/asio;
components/esp_modem;
components/esp_mqtt_cxx;
components/esp_websocket_client;
components/mdns;
components/console_simple_init;
components/console_cmd_ifconfig;
components/console_cmd_ping;
namespace: "espressif"
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
# - name: Generate docs
# shell: bash
# run: |
# sudo apt-get update
# sudo apt-get -y install doxygen clang python3-pip
# python -m pip install breathe recommonmark esp-docs==1.4.1
# for comp in `ls components`; do
# if [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
# cd $GITHUB_WORKSPACE/docs/${comp}
# if [[ "${{ env.BUMP_COMPONENT }}" == "${comp}" ]]; then
# echo "Building specific version of ${comp} (${{ env.BUMP_VERSION }})"
# ./generate_docs ${{ env.BUMP_VERSION }}
# else
# echo "Building latest version of ${comp}"
# ./generate_docs
# fi
# fi
# done
# - name: Deploying generated docs
# shell: bash
# run: |
# source $GITHUB_WORKSPACE/docs/utils.sh
# add_doc_server_ssh_keys $DOCS_DEPLOY_KEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
# export GIT_VER=$(git describe --always)
# export GITHUB_REF_NAME=latest
# for comp in `ls components`; do
# if [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
# echo "Deploying latest of ${comp}"
# export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/${comp}
# export DOCS_DEPLOY_PATH=$DOCS_DEPLOY_PATH_ORIG/${comp}
# cd $GITHUB_WORKSPACE/docs/${comp}
# deploy-docs
# fi
# done;
# # Deploy docs with version path
# if [[ "${{ env.BUMP_VERSION }}" != "" ]] && [[ -d $GITHUB_WORKSPACE/docs/${{ env.BUMP_COMPONENT }} ]]; then
# echo "Deploying specific version of ${{ env.BUMP_COMPONENT }} (${{ env.BUMP_VERSION }})"
# cd $GITHUB_WORKSPACE/docs/${{ env.BUMP_COMPONENT }}
# export GITHUB_REF_NAME=${{ env.BUMP_VERSION }}
# deploy-docs
# fi
# - name: Upload components to component service
# uses: espressif/upload-components-ci-action@v1
# with:
# directories: >
# components/asio;
# components/esp_modem;
# components/esp_mqtt_cxx;
# components/esp_websocket_client;
# components/mdns;
# components/console_simple_init;
# components/console_cmd_ifconfig;
# namespace: "espressif"
# api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ Please refer to instructions in [ESP-IDF](https://github.com/espressif/esp-idf)
### console_simple_init

* Brief introduction [README](components/console_simple_init/README.md)

### console_cmd_ifconfig

* Brief introduction [README](components/console_cmd_ifconfig/README.md)
5 changes: 2 additions & 3 deletions components/console_cmd_ifconfig/console_ifconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
#endif


typedef struct netif_op_ netif_op_t;

typedef struct netif_op_ {
typedef struct netif_op_t {
char *name;
esp_err_t (*operation)(netif_op_t *self, int argc, char *argv[], esp_netif_t *esp_netif);
esp_err_t (*operation)(struct netif_op_t *self, int argc, char *argv[], esp_netif_t *esp_netif);
int arg_cnt;
int start_index;
char *help;
Expand Down
8 changes: 0 additions & 8 deletions components/console_cmd_ping/.cz.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions components/console_cmd_ping/CMakeLists.txt

This file was deleted.

201 changes: 0 additions & 201 deletions components/console_cmd_ping/LICENSE

This file was deleted.

Loading

0 comments on commit 091cd8a

Please sign in to comment.