Skip to content

Commit

Permalink
Add GitHub Actions workflow for building examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ZivLow committed Jan 25, 2024
1 parent 09d9bc4 commit 497921a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build examples
on:
push:
branches:
- main
pull_request:

jobs:
build-examples:
name: Build for ${{ matrix.idf_target }} on ${{ matrix.idf_ver }}
runs-on: ubuntu-latest
strategy:
matrix:
idf_ver: ["release-v5.2"]
idf_target: ["esp32", "esp32s2", "esp32c3", "esp32s3", "esp32c2", "esp32c6", "esp32h2"]
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: examples/ina226-example

0 comments on commit 497921a

Please sign in to comment.