fix: again #43
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
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Restore cached esp-idf sdk build files | |
id: cache-espidf-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
build/esp-idf/* | |
key: espidf-5.3-last-buildfiles | |
- name: Update cached files timestamp to future | |
run: | | |
find ./build/esp-idf/ -type f -name "*" -exec touch {} + | |
- name: Build with esp-idf for target esp32 | |
uses: espressif/esp-idf-ci-action@v1.1.0 | |
with: | |
esp_idf_version: v5.3 | |
target: esp32 | |
path: '/' | |
command: | | |
find /opt/esp/idf/ -type f -name "*" -exec touch -d '-2 hour' {} + && idf.py build | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: | | |
build/*.bin | |
- name: Save cached esp-idf sdk build files | |
id: cache-espidf-save | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
build/esp-idf/* | |
key: ${{ steps.cache-espidf-restore.outputs.cache-primary-key }} |