Skip to content

Commit

Permalink
feat: added build github workflow for ethernet_init component
Browse files Browse the repository at this point in the history
  • Loading branch information
espressif-abhikroy authored and kostaond committed Oct 5, 2023
1 parent 877af17 commit 8ca231a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ethernet_init__build.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/upload_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 8ca231a

Please sign in to comment.