@@ -3,14 +3,14 @@ name: CHIP wheels build
3
3
on : push
4
4
5
5
env :
6
- matter_sdk_ref : v1.1.0.1
6
+ matter_sdk_ref : SVE_23_09/rc1
7
7
8
8
jobs :
9
9
build_prepare :
10
10
name : Prepare build
11
11
runs-on : ubuntu-22.04
12
12
outputs :
13
- version : ${{ steps.python- version.outputs.value }}
13
+ version : ${{ steps.version.outputs.version }}
14
14
channel : ${{ steps.version.outputs.channel }}
15
15
steps :
16
16
- name : Checkout build repository
@@ -31,16 +31,18 @@ jobs:
31
31
commit_count="$(git rev-list --count --since=$midnight_timestamp HEAD)"
32
32
commit_count="$(printf "%02d" ${commit_count})"
33
33
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}"
34
43
fi
44
+ echo "Building version $version"
35
45
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
44
46
- name : Checkout CHIP SDK repository
45
47
uses : actions/checkout@v3
46
48
with :
60
62
done
61
63
- name : Bootstrap
62
64
working-directory : ./project-chip
63
- run : scripts/build/gn_bootstrap .sh
65
+ run : bash scripts/bootstrap .sh
64
66
- name : ZAP Code pre-generation
65
67
working-directory : ./project-chip
66
68
run : scripts/run_in_build_env.sh "scripts/codepregen.py ./zzz_pregenerated/"
70
72
- name : Store Matter SDK as artifact
71
73
uses : actions/upload-artifact@v3
72
74
with :
73
- name : matter-sdk-${{ env.matter_sdk_ref }}
75
+ name : matter-sdk-${{ github.run_id }}
74
76
path : ./project-chip.tar.zst
75
77
76
78
build_linux_python_lib :
@@ -81,10 +83,10 @@ jobs:
81
83
matrix :
82
84
arch :
83
85
- name : x86_64
84
- container : connectedhomeip/ chip-build:0.7.0
86
+ container : ghcr.io/project- chip/chip -build:1
85
87
runner : ubuntu-22.04
86
88
- name : aarch64
87
- container : agners/aarch64-chip-build:0.7.0
89
+ container : docker.io/ agners/aarch64-chip-build:1
88
90
runner : ARM64
89
91
90
92
runs-on : ${{ matrix.arch.runner }}
@@ -106,18 +108,19 @@ jobs:
106
108
- name : Restore Matter SDK from artifacts
107
109
uses : actions/download-artifact@v3
108
110
with :
109
- name : matter-sdk-${{ env.matter_sdk_ref }}
111
+ name : matter-sdk-${{ github.run_id }}
110
112
- name : Extract Matter SDK from tar
111
113
working-directory : ./
112
114
run : |
115
+ rm -rf project-chip
113
116
mkdir -p project-chip
114
117
cd project-chip
115
118
apt update && apt install zstd
116
119
tar -xaf ../project-chip.tar.zst --use-compress-program=zstdmt .
117
120
git config --global --add safe.directory "*"
118
121
rm -rf out/
119
122
- name : Bootstrap
120
- run : scripts/build/gn_bootstrap .sh
123
+ run : bash scripts/bootstrap .sh
121
124
- name : Setup Build, Run Build and Run Tests
122
125
run : |
123
126
scripts/build/gn_gen.sh --args=" \
0 commit comments