Skip to content

Commit 8858357

Browse files
Merge pull request #1 from RoboticsBrno/copilot/fix-workflow-compile-code
Fix workflow to build ESP-IDF project
2 parents 6f7d871 + c16c52d commit 8858357

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/main.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Simple Build Check
1+
name: ESP-IDF Build Check
22

33
on:
44
push:
@@ -13,16 +13,20 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
1618

17-
- name: Install Dependencies (Ubuntu)
19+
- name: Setup ESP-IDF
20+
uses: espressif/esp-idf-ci-action@v1
21+
with:
22+
esp_idf_version: v5.1.2
23+
target: esp32
24+
25+
- name: Clone ESP32-HUB75-MatrixPanel-I2S-DMA component
1826
run: |
19-
sudo apt-get update
20-
sudo apt-get install -y build-essential cmake
27+
git clone https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA.git components/ESP32-HUB75-MatrixPanel-I2S-DMA
2128
22-
- name: Configure and Build
29+
- name: Build project
2330
run: |
24-
mkdir build
25-
cd build
26-
cmake ..
27-
make
28-
./2D-renderer-cpp
31+
. $IDF_PATH/export.sh
32+
idf.py build

0 commit comments

Comments
 (0)