File tree Expand file tree Collapse file tree 3 files changed +66
-1
lines changed Expand file tree Collapse file tree 3 files changed +66
-1
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
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress : true
15
+
16
+ jobs :
17
+ build :
18
+ runs-on : ubuntu-latest
19
+ container : espressif/esp-matter:latest
20
+
21
+ strategy :
22
+ fail-fast : false
23
+ matrix :
24
+ example : [empty-template, led-blink, smart-light]
25
+
26
+ steps :
27
+ - name : Checkout repo
28
+ uses : actions/checkout@v4
29
+
30
+ - name : Install Swift & CMake
31
+ run : |
32
+ set -vex
33
+
34
+ # TODO: swap for an official downloadable toolchain once it's out
35
+ SWIFT_TOOLCHAIN_VERSION=swift-DEVELOPMENT-SNAPSHOT-2024-12-13-a
36
+ #wget https://download.swift.org/development/ubuntu2204/${SWIFT_TOOLCHAIN_VERSION}/${SWIFT_TOOLCHAIN_VERSION}-ubuntu22.04.tar.gz
37
+ wget https://download.swift.org/tmp-ci-nightly/development/swift-DEVELOPMENT-SNAPSHOT-2024-12-13-a-4019/ubuntu2204/swift-DEVELOPMENT-SNAPSHOT-2024-12-13-a/swift-DEVELOPMENT-SNAPSHOT-2024-12-13-a-ubuntu2204.tar.gz
38
+
39
+ tar vxzf ${SWIFT_TOOLCHAIN_VERSION}-ubuntu2204.tar.gz
40
+ export PATH="`pwd`/usr/bin/:$PATH"
41
+ swiftc --version
42
+
43
+ wget https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2-linux-x86_64.tar.gz
44
+ tar xzf cmake-3.30.2-linux-x86_64.tar.gz
45
+ export PATH="`pwd`/cmake-3.30.2-linux-x86_64/bin:$PATH"
46
+ cmake --version
47
+
48
+ echo "PATH=$PATH" >> $GITHUB_ENV
49
+
50
+ - name : Build with idf.py
51
+ run : |
52
+ pwd
53
+ cd /opt/espressif/esp-idf
54
+ . ./export.sh
55
+ cd -
56
+ cd /opt/espressif/esp-matter
57
+ . ./export.sh
58
+ cd -
59
+ cd ${{ matrix.example }}/
60
+ idf.py set-target esp32c6 &&
61
+ idf.py build
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ extension Matter {
21
21
endpoints. append ( endpoint)
22
22
}
23
23
24
- var innerNode : RootNode
24
+ // swift-format-ignore: NeverUseImplicitlyUnwrappedOptionals
25
+ // This is never actually nil after init(), and inside init we want to form a callback closure that references self.
26
+ var innerNode : RootNode !
25
27
26
28
init ( ) {
27
29
// Initialize persistent storage.
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