Skip to content

Commit 96aeb11

Browse files
Added new CI to test cross compiled image on main
1 parent c8ac696 commit 96aeb11

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Test Ubuntu Cross Compiled
2+
3+
on:
4+
push:
5+
branches:
6+
- test/ubuntu-arm-2
7+
pull_request:
8+
branches:
9+
- test/ubuntu-arm-2
10+
11+
jobs:
12+
build-sqa-tools-ubuntu-arm-native:
13+
runs-on: ubuntu-latest
14+
container:
15+
image: ghcr.io/project-chip/chip-build-crosscompile:81
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
submodules: false
22+
23+
- name: Mark repo as safe
24+
shell: bash
25+
run: |
26+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
27+
28+
- name: Initialize required submodules
29+
shell: bash
30+
run: |
31+
git submodule update --init third_party/matter_sdk
32+
33+
- name: Checkout matter_sdk submodules
34+
shell: bash
35+
run: |
36+
cd "$GITHUB_WORKSPACE/third_party/matter_sdk"
37+
python ./scripts/checkout_submodules.py --platform linux
38+
39+
- name: Run bootstrap action
40+
uses: SiliconLabsSoftware/matter_build_action/bootstrap@v2.0.0
41+
42+
- name: Build chip-tool
43+
shell: bash
44+
run: |
45+
cd "$GITHUB_WORKSPACE/third_party/matter_sdk"
46+
./scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target linux-arm64-chip-tool-ipv6only-clang build"
47+
48+
- name: Upload chiptool artifact
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: sqa-tools-cross-compiled
52+
path: third_party/matter_sdk/out/linux-arm64-chip-tool-ipv6only-clang/chip-tool
53+
54+
- name: Build OTA provider
55+
shell: bash
56+
run: |
57+
cd "$GITHUB_WORKSPACE/third_party/matter_sdk"
58+
./scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target linux-arm64-ota-provider-ipv6only-clang build"
59+
60+
- name: Build all-clusters app
61+
shell: bash
62+
run: |
63+
cd "$GITHUB_WORKSPACE/third_party/matter_sdk"
64+
./scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target linux-arm64-all-clusters-clang build"

0 commit comments

Comments
 (0)