-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (33 loc) · 1.23 KB
/
build.yml
File metadata and controls
39 lines (33 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI - Build
on:
push
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
sudo apt install -y git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
- name: Prepare test_app
run: |
cd ~
mkdir -p test_app/components/ESP32Servo
mkdir -p test_app/main/
echo -e "cmake_minimum_required(VERSION 3.5)\ninclude(\$ENV{IDF_PATH}/tools/cmake/project.cmake)\nproject(template-app)" > test_app/CMakeLists.txt
echo -e "idf_component_register(SRCS "main.cpp" INCLUDE_DIRS ".")" > test_app/main/CMakeLists.txt
cp -r $GITHUB_WORKSPACE test_app/components/
cp test_app/components/ESP32Servo/examples/sweep.cpp test_app/main/main.cpp
- name: Install esp-idf
run: |
mkdir -p ~/esp
cd ~/esp
git clone -b v4.4 --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
./install.sh esp32
- name: Build test_app
run: |
. ~/esp/esp-idf/export.sh
cd ~/test_app/
idf.py build