forked from abishekvashok/cmatrix
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add GitHub Actions workflow for ESP-IDF buil
- Loading branch information
1 parent
627d10a
commit b498ab5
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: ESP-IDF Build for ESP32 | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up ESP-IDF environment | ||
uses: espressif/esp-idf-ci-action@v1 | ||
with: | ||
esp_idf_version: v4.4.6 | ||
target: esp32s3 | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Navigate to esp32 directory | ||
run: cd esp32 | ||
|
||
- name: Build firmware | ||
run: | | ||
. $HOME/esp/esp-idf/export.sh | ||
idf.py build | ||
- name: Archive firmware binary | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: firmware | ||
path: build/esp32/*.bin |