Skip to content

ci(flash_repo): Add build test #4

ci(flash_repo): Add build test

ci(flash_repo): Add build test #4

Workflow file for this run

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
echo "source $GITHUB_WORKSPACE/esp-idf/export.sh" >> $GITHUB_ENV
- name: Set up esp-flash-drivers submodule
run: git submodule update --init --recursive
- name: Build custom_flash_driver example
run: |
source $GITHUB_ENV
cd esp-idf/examples/storage/custom_flash_driver
idf.py set-target esp32
idf.py build