ci(flash_repo): Add build test #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Custom Flash Driver Example | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout esp-flash-drivers repository | |
uses: actions/checkout@v3 | |
- name: Checkout ESP-IDF repository | |
uses: actions/checkout@v3 | |
with: | |
repository: espressif/esp-idf | |
path: esp-idf | |
- name: Set up ESP-IDF environment | |
run: | | |
cd esp-idf | |
./install.sh esp32 | |
. ./export.sh | |
- name: Set up esp-flash-drivers submodule | |
run: git submodule update --init --recursive | |
- name: Build custom_flash_driver example | |
run: | | |
cd esp-idf/examples/storage/custom_flash_driver | |
idf.py set-target esp32 | |
idf.py build |