From 7cd0120d86313991cfc25a07ab62232f5d929767 Mon Sep 17 00:00:00 2001 From: ZivLow Date: Fri, 26 Jan 2024 00:46:44 +0800 Subject: [PATCH] Add GitHub Actions workflow to build examples --- .github/workflows/build_example.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build_example.yml diff --git a/.github/workflows/build_example.yml b/.github/workflows/build_example.yml new file mode 100644 index 0000000..4afda53 --- /dev/null +++ b/.github/workflows/build_example.yml @@ -0,0 +1,25 @@ +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", "esp32s3", "esp32c2", "esp32c3", "esp32c6", "esp32h2"] + container: espressif/idf:${{ matrix.idf_ver }} + 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 \ No newline at end of file