File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Matter Examples
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ pull_request :
7
+ branches : ["main"]
8
+ schedule :
9
+ # Build on Mondays at 9am PST every week
10
+ - cron : ' 0 17 * * 1'
11
+
12
+ jobs :
13
+ build :
14
+ runs-on : ubuntu-latest
15
+ container : espressif/esp-matter:latest
16
+
17
+ steps :
18
+ - name : Checkout repo
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Install Swift & CMake
22
+ run : |
23
+ set -vex
24
+
25
+ SWIFT_TOOLCHAIN_VERSION=swift-DEVELOPMENT-SNAPSHOT-2024-08-01-a
26
+ wget https://download.swift.org/development/ubuntu2204/${SWIFT_TOOLCHAIN_VERSION}/${SWIFT_TOOLCHAIN_VERSION}-ubuntu22.04.tar.gz
27
+ tar xzf ${SWIFT_TOOLCHAIN_VERSION}-ubuntu22.04.tar.gz
28
+ export PATH="$PATH:`pwd`/${SWIFT_TOOLCHAIN_VERSION}-ubuntu22.04/usr/bin/"
29
+ swiftc --version
30
+
31
+ wget https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2-linux-x86_64.tar.gz
32
+ tar xzf cmake-3.30.2-linux-x86_64.tar.gz
33
+ export PATH="`pwd`/cmake-3.30.2-linux-x86_64/bin:$PATH"
34
+ cmake --version
35
+
36
+ echo "PATH=$PATH" >> $GITHUB_ENV
37
+
38
+ - name : Build with idf.py
39
+ run : |
40
+ pwd
41
+ cd /opt/espressif/esp-idf
42
+ . ./export.sh
43
+ cd -
44
+ cd /opt/espressif/esp-matter
45
+ . ./export.sh
46
+ cd -
47
+ cd smart-light/
48
+ idf.py set-target esp32c6 &&
49
+ idf.py build
Original file line number Diff line number Diff line change 38
38
//
39
39
// connectedhomeip/src/credentials/FabricTable.h:82:69: error: use of undeclared identifier 'strnlen'
40
40
extern "C" size_t strnlen (const char * s , size_t maxlen );
41
+ // esp-matter/components/esp_matter/esp_matter_client.h:57:26: error: use of undeclared identifier 'strdup'
42
+ extern "C" char * strdup (const char * s1 );
41
43
42
44
#include <esp_matter.h>
43
45
#include <esp_matter_cluster.h>
You can’t perform that action at this time.
0 commit comments