|
51 | 51 | path: ./project-chip
|
52 | 52 | - name: Checkout submodules
|
53 | 53 | working-directory: ./project-chip
|
54 |
| - run: scripts/checkout_submodules.py --shallow --platform linux --platform darwin |
| 54 | + run: scripts/checkout_submodules.py --shallow --platform linux |
55 | 55 | - name: Apply patches
|
56 | 56 | working-directory: ./project-chip
|
57 | 57 | run: |
|
|
62 | 62 | done
|
63 | 63 | - name: Bootstrap
|
64 | 64 | working-directory: ./project-chip
|
65 |
| - run: bash scripts/bootstrap.sh |
| 65 | + run: bash scripts/bootstrap.sh -p all,linux |
66 | 66 | - name: ZAP Code pre-generation
|
67 | 67 | working-directory: ./project-chip
|
68 | 68 | run: scripts/run_in_build_env.sh "scripts/codepregen.py ./zzz_pregenerated/"
|
@@ -120,7 +120,7 @@ jobs:
|
120 | 120 | git config --global --add safe.directory "*"
|
121 | 121 | rm -rf out/
|
122 | 122 | - name: Bootstrap
|
123 |
| - run: bash scripts/bootstrap.sh |
| 123 | + run: bash scripts/bootstrap.sh -p all,linux |
124 | 124 | - name: Setup Build, Run Build and Run Tests
|
125 | 125 | run: |
|
126 | 126 | scripts/build/gn_gen.sh --args=" \
|
@@ -194,22 +194,29 @@ jobs:
|
194 | 194 | working-directory: ./project-chip
|
195 | 195 |
|
196 | 196 | steps:
|
197 |
| - - name: Restore Matter SDK from artifacts |
198 |
| - uses: actions/download-artifact@v3 |
| 197 | + - name: Checkout CHIP SDK repository |
| 198 | + uses: actions/checkout@v3 |
199 | 199 | with:
|
200 |
| - name: matter-sdk-${{ github.run_id }} |
201 |
| - - name: Extract Matter SDK from tar |
202 |
| - working-directory: ./ |
| 200 | + repository: project-chip/connectedhomeip |
| 201 | + ref: ${{ env.matter_sdk_ref }} |
| 202 | + path: ./project-chip |
| 203 | + - name: Checkout submodules |
| 204 | + working-directory: ./project-chip |
| 205 | + run: scripts/checkout_submodules.py --shallow --platform darwin |
| 206 | + - name: Apply patches |
| 207 | + working-directory: ./project-chip |
203 | 208 | run: |
|
204 |
| - rm -rf project-chip |
205 |
| - mkdir -p project-chip |
206 |
| - cd project-chip |
207 |
| - apt update && apt install zstd |
208 |
| - tar -xaf ../project-chip.tar.zst --use-compress-program=zstdmt . |
209 |
| - git config --global --add safe.directory "*" |
210 |
| - rm -rf out/ |
| 209 | + for patch in ../*.patch |
| 210 | + do |
| 211 | + echo "Applying ${patch}" |
| 212 | + patch -p1 < $patch |
| 213 | + done |
211 | 214 | - name: Bootstrap
|
| 215 | + working-directory: ./project-chip |
212 | 216 | run: bash scripts/bootstrap.sh -p all,darwin
|
| 217 | + - name: ZAP Code pre-generation |
| 218 | + working-directory: ./project-chip |
| 219 | + run: scripts/run_in_build_env.sh "scripts/codepregen.py ./zzz_pregenerated/" |
213 | 220 | - name: Setup Build, Run Build and Run Tests
|
214 | 221 | run: |
|
215 | 222 | scripts/build/gn_gen.sh --args=" \
|
|
0 commit comments