Skip to content

Commit 19f8b79

Browse files
committed
Code cleanup & optimization
1 parent 1297c96 commit 19f8b79

14 files changed

+346
-438
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vscode
2+
.devcontainer
3+
Dockerfile.test_build

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI - Build
2+
3+
on:
4+
push
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 10
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Install deps
14+
run: |
15+
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
16+
17+
- name: Prepare test_app
18+
run: |
19+
cd ~
20+
mkdir -p test_app/components/BNO055ESP32
21+
mkdir -p test_app/main/
22+
echo -e "cmake_minimum_required(VERSION 3.5)\ninclude(\$ENV{IDF_PATH}/tools/cmake/project.cmake)\nproject(template-app)" > test_app/CMakeLists.txt
23+
echo -e "idf_component_register(SRCS "main.cpp" INCLUDE_DIRS ".")" > test_app/main/CMakeLists.txt
24+
cp -r $GITHUB_WORKSPACE test_app/components/
25+
cp test_app/components/BNO055ESP32/examples/example.cpp test_app/main/main.cpp
26+
27+
- name: Install esp-idf
28+
run: |
29+
mkdir -p ~/esp
30+
cd ~/esp
31+
git clone -b v4.4 --recursive https://github.com/espressif/esp-idf.git
32+
cd esp-idf
33+
./install.sh esp32
34+
35+
- name: Build test_app
36+
run: |
37+
. ~/esp/esp-idf/export.sh
38+
cd ~/test_app/
39+
idf.py reconfigure
40+
echo -e "CONFIG_COMPILER_CXX_EXCEPTIONS=y\nCONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE=0\nCONFIG_CXX_EXCEPTIONS=y\nCONFIG_CXX_EXCEPTIONS_EMG_POOL_SIZE=0\n" >> ./sdkconfig
41+
idf.py build

.travis.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)