Skip to content

Commit f2fe821

Browse files
authored
Merge pull request #19 from home-assistant-libs/bump-to-sve-23.09-rc1
Bump Matter SDK to SVE_23_09/rc1 tag
2 parents 3e90d17 + 76a6595 commit f2fe821

9 files changed

+32
-436
lines changed

.github/workflows/build.yaml

+19-16
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: CHIP wheels build
33
on: push
44

55
env:
6-
matter_sdk_ref: v1.1.0.1
6+
matter_sdk_ref: SVE_23_09/rc1
77

88
jobs:
99
build_prepare:
1010
name: Prepare build
1111
runs-on: ubuntu-22.04
1212
outputs:
13-
version: ${{ steps.python-version.outputs.value }}
13+
version: ${{ steps.version.outputs.version }}
1414
channel: ${{ steps.version.outputs.channel }}
1515
steps:
1616
- name: Checkout build repository
@@ -31,16 +31,18 @@ jobs:
3131
commit_count="$(git rev-list --count --since=$midnight_timestamp HEAD)"
3232
commit_count="$(printf "%02d" ${commit_count})"
3333
version="${calver_date}${commit_count}"
34+
else
35+
today="$(date --utc '+%Y-%m-%d')"
36+
midnight_timestamp="$(date --utc +%s --date=$today)"
37+
calver_date="$(date --utc --date=$today '+%Y.%-m.dev%-d')"
38+
# Remove invalid chars
39+
localversion="${version}"
40+
localversion="${localversion//-/}"
41+
localversion="${localversion//_/}"
42+
version="${calver_date}+${localversion}"
3443
fi
44+
echo "Building version $version"
3545
echo "version=$version" >> "$GITHUB_OUTPUT"
36-
- name: Find-and-replace strings
37-
id: python-version
38-
uses: mad9000/actions-find-and-replace-string@3
39-
with:
40-
source: ${{ steps.version.outputs.version }}
41-
find: '-'
42-
replace: '_'
43-
replaceAll: true
4446
- name: Checkout CHIP SDK repository
4547
uses: actions/checkout@v3
4648
with:
@@ -60,7 +62,7 @@ jobs:
6062
done
6163
- name: Bootstrap
6264
working-directory: ./project-chip
63-
run: scripts/build/gn_bootstrap.sh
65+
run: bash scripts/bootstrap.sh
6466
- name: ZAP Code pre-generation
6567
working-directory: ./project-chip
6668
run: scripts/run_in_build_env.sh "scripts/codepregen.py ./zzz_pregenerated/"
@@ -70,7 +72,7 @@ jobs:
7072
- name: Store Matter SDK as artifact
7173
uses: actions/upload-artifact@v3
7274
with:
73-
name: matter-sdk-${{ env.matter_sdk_ref }}
75+
name: matter-sdk-${{ github.run_id }}
7476
path: ./project-chip.tar.zst
7577

7678
build_linux_python_lib:
@@ -81,10 +83,10 @@ jobs:
8183
matrix:
8284
arch:
8385
- name: x86_64
84-
container: connectedhomeip/chip-build:0.7.0
86+
container: ghcr.io/project-chip/chip-build:1
8587
runner: ubuntu-22.04
8688
- name: aarch64
87-
container: agners/aarch64-chip-build:0.7.0
89+
container: docker.io/agners/aarch64-chip-build:1
8890
runner: ARM64
8991

9092
runs-on: ${{ matrix.arch.runner }}
@@ -106,18 +108,19 @@ jobs:
106108
- name: Restore Matter SDK from artifacts
107109
uses: actions/download-artifact@v3
108110
with:
109-
name: matter-sdk-${{ env.matter_sdk_ref }}
111+
name: matter-sdk-${{ github.run_id }}
110112
- name: Extract Matter SDK from tar
111113
working-directory: ./
112114
run: |
115+
rm -rf project-chip
113116
mkdir -p project-chip
114117
cd project-chip
115118
apt update && apt install zstd
116119
tar -xaf ../project-chip.tar.zst --use-compress-program=zstdmt .
117120
git config --global --add safe.directory "*"
118121
rm -rf out/
119122
- name: Bootstrap
120-
run: scripts/build/gn_bootstrap.sh
123+
run: bash scripts/bootstrap.sh
121124
- name: Setup Build, Run Build and Run Tests
122125
run: |
123126
scripts/build/gn_gen.sh --args=" \

0001-Support-custom-platform-tag.patch

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
From c46f6cb84fb189da723a9932a5195a553762e2b6 Mon Sep 17 00:00:00 2001
2-
Message-Id: <c46f6cb84fb189da723a9932a5195a553762e2b6.1684832810.git.stefan@agner.ch>
1+
From 7105b8d215750e60fc872af5d8c5903e61a806c9 Mon Sep 17 00:00:00 2001
2+
Message-ID: <7105b8d215750e60fc872af5d8c5903e61a806c9.1696858281.git.stefan@agner.ch>
33
From: Stefan Agner <stefan@agner.ch>
44
Date: Tue, 22 Nov 2022 10:51:17 +0100
55
Subject: [PATCH] Support custom platform tag
@@ -9,13 +9,13 @@ Subject: [PATCH] Support custom platform tag
99
1 file changed, 10 insertions(+), 10 deletions(-)
1010

1111
diff --git a/src/controller/python/BUILD.gn b/src/controller/python/BUILD.gn
12-
index 750de2b837..424ed433b1 100644
12+
index 4b84c63d5f..b01dafbc30 100644
1313
--- a/src/controller/python/BUILD.gn
1414
+++ b/src/controller/python/BUILD.gn
15-
@@ -33,6 +33,15 @@ config("controller_wno_deprecate") {
16-
declare_args() {
15+
@@ -35,6 +35,15 @@ declare_args() {
1716
chip_python_version = "0.0"
1817
chip_python_package_prefix = "chip"
18+
chip_python_supports_stack_locking = chip_system_config_locking != "none"
1919
+
2020
+ if (current_os == "mac") {
2121
+ chip_python_platform_tag = string_replace(
@@ -28,7 +28,7 @@ index 750de2b837..424ed433b1 100644
2828
}
2929

3030
shared_library("ChipDeviceCtrl") {
31-
@@ -326,16 +335,7 @@ chip_python_wheel_action("chip-core") {
31+
@@ -340,16 +349,7 @@ chip_python_wheel_action("chip-core") {
3232
cpu_tag = current_cpu
3333
}
3434

@@ -47,5 +47,5 @@ index 750de2b837..424ed433b1 100644
4747
tags = "cp37-abi3-" + py_platform_tag
4848

4949
--
50-
2.40.1
50+
2.42.0
5151

0002-Use-data-as-platform-storage-location.patch

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 5ec4046d098992d3b7b8a4fc46ceb4008a31da9d Mon Sep 17 00:00:00 2001
2-
Message-Id: <5ec4046d098992d3b7b8a4fc46ceb4008a31da9d.1684832810.git.stefan@agner.ch>
3-
In-Reply-To: <c46f6cb84fb189da723a9932a5195a553762e2b6.1684832810.git.stefan@agner.ch>
4-
References: <c46f6cb84fb189da723a9932a5195a553762e2b6.1684832810.git.stefan@agner.ch>
1+
From 0099f338e0fb740bd4fb2f34b315bca918e9b257 Mon Sep 17 00:00:00 2001
2+
Message-ID: <0099f338e0fb740bd4fb2f34b315bca918e9b257.1696858281.git.stefan@agner.ch>
3+
In-Reply-To: <7105b8d215750e60fc872af5d8c5903e61a806c9.1696858281.git.stefan@agner.ch>
4+
References: <7105b8d215750e60fc872af5d8c5903e61a806c9.1696858281.git.stefan@agner.ch>
55
From: Stefan Agner <stefan@agner.ch>
66
Date: Fri, 27 May 2022 16:38:14 +0200
77
Subject: [PATCH] Use /data as platform storage location
@@ -11,7 +11,7 @@ Subject: [PATCH] Use /data as platform storage location
1111
1 file changed, 6 insertions(+)
1212

1313
diff --git a/src/platform/Linux/BUILD.gn b/src/platform/Linux/BUILD.gn
14-
index 69d0289254..af10193504 100644
14+
index 56324ff5c4..066bde076a 100644
1515
--- a/src/platform/Linux/BUILD.gn
1616
+++ b/src/platform/Linux/BUILD.gn
1717
@@ -38,6 +38,12 @@ if (chip_mdns == "platform") {
@@ -28,5 +28,5 @@ index 69d0289254..af10193504 100644
2828
"../DeviceSafeQueue.cpp",
2929
"../DeviceSafeQueue.h",
3030
--
31-
2.40.1
31+
2.42.0
3232

0003-Add-lookup-dicts-for-clusters-and-attributes.patch

-66
This file was deleted.

0004-python-drop-unnecessary-dependency-to-pycrypto.patch

-36
This file was deleted.

0005-python-make-enum-part-of-cluster-wheel.patch

-59
This file was deleted.

0006-python-remove-now-unnecessary-dependency-mobly.patch

-35
This file was deleted.

0 commit comments

Comments
 (0)