Skip to content

Commit

Permalink
Create build_example.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hayschan committed May 25, 2024
1 parent ff2a019 commit 6dd9c94
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Component Examples

on:
push:
branches:
- 'main'
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
idf_ver: ["release-v5.0", "release-v5.1", "latest"]
idf_target:
- esp32
- esp32s3
- esp32c3
examples:
- examples/temperature_control_relay
- examples/another_example
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Build example
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: ${{ matrix.idf_ver }}
target: ${{ matrix.idf_target }}
path: ${{ matrix.examples }}

0 comments on commit 6dd9c94

Please sign in to comment.