-
Notifications
You must be signed in to change notification settings - Fork 16
32 lines (29 loc) · 982 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
idf_ver: ["latest"]
example: ["ksz8863/examples/simple_switch",
"ksz8863/examples/switch_mode",
"ksz8863/examples/two_ports_mode",
"lan867x/examples/lan867x_tcp_sockets/client",
"lan867x/examples/lan867x_tcp_sockets/server"
]
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/${{ matrix.example }}
idf.py build