@@ -2,9 +2,6 @@ name: CHIP wheels build
2
2
3
3
on : push
4
4
5
- env :
6
- matter_sdk_ref : v1.2.0.1
7
-
8
5
jobs :
9
6
build_prepare :
10
7
name : Prepare build
16
13
- name : Checkout build repository
17
14
uses : actions/checkout@v4
18
15
with :
16
+ submodules : true
19
17
fetch-depth : 0
20
18
- name : Get version
21
19
id : version
@@ -43,37 +41,32 @@ jobs:
43
41
fi
44
42
echo "Building version $version"
45
43
echo "version=$version" >> "$GITHUB_OUTPUT"
46
- - name : Checkout CHIP SDK repository
47
- uses : actions/checkout@v4
48
- with :
49
- repository : project-chip/connectedhomeip
50
- ref : ${{ env.matter_sdk_ref }}
51
- path : ./project-chip
52
44
- name : Checkout submodules
53
- working-directory : ./project-chip
45
+ working-directory : ./connectedhomeip/
54
46
run : scripts/checkout_submodules.py --shallow --platform linux
55
47
- name : Apply patches
56
- working-directory : ./project-chip
48
+ working-directory : ./connectedhomeip/
57
49
run : |
58
50
for patch in ../*.patch
59
51
do
60
52
echo "Applying ${patch}"
61
53
patch -p1 < $patch
62
54
done
63
55
- name : Bootstrap
64
- working-directory : ./project-chip
56
+ working-directory : ./connectedhomeip/
65
57
run : bash scripts/bootstrap.sh -p all,linux
66
58
- name : ZAP Code pre-generation
67
- working-directory : ./project-chip
59
+ working-directory : ./connectedhomeip/
68
60
run : scripts/run_in_build_env.sh "scripts/codepregen.py ./zzz_pregenerated/"
69
61
- name : Create Matter SDK tar
70
- working-directory : ./project-chip
71
- run : tar -caf ../project-chip.tar.zst --exclude .environment --use-compress-program=zstdmt .
62
+ run : |
63
+ tar -caf ../connectedhomeip.tar.zst --exclude ./connectedhomeip/.environment --use-compress-program=zstdmt .
64
+ mv ../connectedhomeip.tar.zst ./connectedhomeip.tar.zst
72
65
- name : Store Matter SDK as artifact
73
66
uses : actions/upload-artifact@v4
74
67
with :
75
68
name : matter-sdk-${{ github.run_id }}
76
- path : ./project-chip .tar.zst
69
+ path : ./connectedhomeip .tar.zst
77
70
78
71
build_linux_python_lib :
79
72
name : Build Python wheels for Linux (${{ matrix.arch.name }})
95
88
96
89
defaults :
97
90
run :
98
- working-directory : ./project-chip
91
+ working-directory : ./connectedhomeip/
99
92
100
93
container :
101
94
image : ${{ matrix.arch.container }}
@@ -112,13 +105,10 @@ jobs:
112
105
- name : Extract Matter SDK from tar
113
106
working-directory : ./
114
107
run : |
115
- rm -rf project-chip
116
- mkdir -p project-chip
117
- cd project-chip
118
108
apt update && apt install zstd
119
- tar -xaf ../project-chip.tar.zst --use-compress-program=zstdmt .
109
+ rm -rf connectedhomeip/
110
+ tar -xaf ./connectedhomeip.tar.zst --use-compress-program=zstdmt .
120
111
git config --global --add safe.directory "*"
121
- rm -rf out/
122
112
- name : Bootstrap
123
113
run : bash scripts/bootstrap.sh -p all,linux
124
114
- name : Setup Build, Run Build and Run Tests
@@ -147,7 +137,7 @@ jobs:
147
137
uses : actions/upload-artifact@v4
148
138
with :
149
139
name : chip-wheels-linux-${{ matrix.arch.name }}
150
- path : project-chip /out/controller/python/*.whl
140
+ path : ./connectedhomeip /out/controller/python/*.whl
151
141
- name : Upload wheels as release assets
152
142
uses : softprops/action-gh-release@v1
153
143
if : startsWith(github.ref, 'refs/tags/')
@@ -192,32 +182,27 @@ jobs:
192
182
193
183
defaults :
194
184
run :
195
- working-directory : ./project-chip
185
+ working-directory : ./connectedhomeip/
196
186
197
187
steps :
198
188
- name : Checkout build repository
199
189
uses : actions/checkout@v4
200
190
with :
191
+ submodules : true
201
192
fetch-depth : 0
202
- - name : Checkout CHIP SDK repository
203
- uses : actions/checkout@v4
204
- with :
205
- repository : project-chip/connectedhomeip
206
- ref : ${{ env.matter_sdk_ref }}
207
- path : ./project-chip
208
193
- name : Checkout submodules
209
- working-directory : ./project-chip
194
+ working-directory : ./connectedhomeip/
210
195
run : scripts/checkout_submodules.py --shallow --platform darwin
211
196
- name : Apply patches
212
- working-directory : ./project-chip
197
+ working-directory : ./connectedhomeip/
213
198
run : |
214
199
for patch in ../*.patch
215
200
do
216
201
echo "Applying ${patch}"
217
202
patch -p1 < $patch
218
203
done
219
204
- name : Bootstrap
220
- working-directory : ./project-chip
205
+ working-directory : ./connectedhomeip/
221
206
run : bash scripts/bootstrap.sh -p all,darwin
222
207
- name : Setup Build, Run Build and Run Tests
223
208
run : |
@@ -249,7 +234,7 @@ jobs:
249
234
uses : softprops/action-gh-release@v1
250
235
if : startsWith(github.ref, 'refs/tags/')
251
236
with :
252
- files : project-chip /out/controller/python/*.whl
237
+ files : connectedhomeip /out/controller/python/*.whl
253
238
- name : Upload wheels to PyPI
254
239
if : startsWith(github.ref, 'refs/tags/')
255
240
env :
0 commit comments