From 8ca231a9ef60e6eb1ddd4b1cd95b16641a6dc757 Mon Sep 17 00:00:00 2001 From: Abhik Roy Date: Thu, 5 Oct 2023 00:17:57 +1100 Subject: [PATCH] feat: added build github workflow for ethernet_init component --- .github/workflows/ethernet_init__build.yml | 27 ++++++++++++++++++++++ .github/workflows/upload_component.yml | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ethernet_init__build.yml diff --git a/.github/workflows/ethernet_init__build.yml b/.github/workflows/ethernet_init__build.yml new file mode 100644 index 0000000..efc3eae --- /dev/null +++ b/.github/workflows/ethernet_init__build.yml @@ -0,0 +1,27 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + strategy: + matrix: + idf_ver: ["latest"] + example: ["simple-ethernet"] + idf_target: ["esp32"] + + runs-on: ubuntu-20.04 + container: espressif/idf:${{ matrix.idf_ver }} + steps: + - name: Checkout esp_eth_drivers + uses: actions/checkout@master + with: + path: esp_eth_drivers + - 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_eth_drivers/ethernet_init/examples/${{ matrix.example }} + idf.py build diff --git a/.github/workflows/upload_component.yml b/.github/workflows/upload_component.yml index f319631..61c59ba 100644 --- a/.github/workflows/upload_component.yml +++ b/.github/workflows/upload_component.yml @@ -14,6 +14,6 @@ jobs: - name: Upload components to the component registry uses: espressif/github-actions/upload_components@master with: - directories: "ksz8863;adin1200" + directories: "ksz8863;adin1200;ethernet_init" namespace: "espressif" api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} \ No newline at end of file