|
52 | 52 | ls -la /usr/local/Cellar/openssl@1.1
|
53 | 53 | OPEN_SSL_VERSION=`ls -la /usr/local/Cellar/openssl@1.1 | cat | tail -n1 | awk '{print $NF}'`
|
54 | 54 | ln -s /usr/local/Cellar/openssl@1.1/$OPEN_SSL_VERSION/lib/pkgconfig/* .
|
55 |
| - - name: Install zap |
56 |
| - run: | |
57 |
| - sudo mkdir -p $ZAP_INSTALL_PATH |
58 |
| - sudo chown `whoami` $ZAP_INSTALL_PATH |
59 |
| - curl -L https://github.com/project-chip/zap/releases/download/${ZAP_VERSION}/zap-mac.zip \ |
60 |
| - --output $ZAP_INSTALL_PATH/zap-mac.zip |
61 |
| - cd $ZAP_INSTALL_PATH |
62 |
| - unzip zap-mac.zip zap-cli |
63 |
| - rm zap-mac.zip |
64 |
| - ./zap-cli --version |
65 |
| - env: |
66 |
| - # NOTE: Generally kept in sync within the repo using |
67 |
| - # scripts/tools/zap/version_update.py |
68 |
| - # This is scoped to only the steps that don't use xcodebuild. |
69 |
| - ZAP_VERSION: v2023.01.19-nightly |
70 |
| - ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly |
71 | 55 | - name: Bootstrap
|
72 | 56 | timeout-minutes: 25
|
73 | 57 | run: scripts/build/gn_bootstrap.sh
|
|
79 | 63 | path: |
|
80 | 64 | .environment/gn_out/.ninja_log
|
81 | 65 | .environment/pigweed-venv/*.log
|
| 66 | + - name: Block zap-cli from being used |
| 67 | + # xcodebuild is NOT expected to require zap-cli |
| 68 | + run: scripts/run_in_build_env.sh 'mv $PW_ENVIRONMENT_ROOT/cipd/packages/zap/zap-cli $PW_ENVIRONMENT_ROOT/cipd/packages/zap/zap-cli.moved' |
| 69 | + - name: Validate zap-cli is NOT available |
| 70 | + # run_in_build_env.sh is used to ensure PATH is set to something that would otherwise find zap-cli |
| 71 | + run: scripts/run_in_build_env.sh '(zap-cli --version && exit 1) || exit 0' |
82 | 72 | - name: Run iOS Build Debug
|
83 | 73 | timeout-minutes: 50
|
84 | 74 | working-directory: src/darwin/Framework
|
@@ -118,36 +108,22 @@ jobs:
|
118 | 108 | - name: Clean Build
|
119 | 109 | run: xcodebuild clean
|
120 | 110 | working-directory: src/darwin/Framework
|
| 111 | + - name: Make zap-cli work again |
| 112 | + run: scripts/run_in_build_env.sh 'mv $PW_ENVIRONMENT_ROOT/cipd/packages/zap/zap-cli.moved $PW_ENVIRONMENT_ROOT/cipd/packages/zap/zap-cli' |
| 113 | + - name: Validate zap-cli is again available |
| 114 | + run: scripts/run_in_build_env.sh 'zap-cli --version' |
121 | 115 | - name: Build example All Clusters Server
|
122 | 116 | timeout-minutes: 15
|
123 | 117 | run: |
|
124 | 118 | scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug chip_config_network_layer_ble=false
|
125 |
| - env: |
126 |
| - # NOTE: Generally kept in sync within the repo using |
127 |
| - # scripts/tools/zap/version_update.py |
128 |
| - # This is scoped to only the steps that don't use xcodebuild. |
129 |
| - ZAP_VERSION: v2023.01.19-nightly |
130 |
| - ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly |
131 | 119 | - name: Build example OTA Provider
|
132 | 120 | timeout-minutes: 10
|
133 | 121 | run: |
|
134 | 122 | scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug chip_config_network_layer_ble=false
|
135 |
| - env: |
136 |
| - # NOTE: Generally kept in sync within the repo using |
137 |
| - # scripts/tools/zap/version_update.py |
138 |
| - # This is scoped to only the steps that don't use xcodebuild. |
139 |
| - ZAP_VERSION: v2023.01.19-nightly |
140 |
| - ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly |
141 | 123 | - name: Build example OTA Requestor
|
142 | 124 | timeout-minutes: 10
|
143 | 125 | run: |
|
144 | 126 | scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux out/debug chip_config_network_layer_ble=false
|
145 |
| - env: |
146 |
| - # NOTE: Generally kept in sync within the repo using |
147 |
| - # scripts/tools/zap/version_update.py |
148 |
| - # This is scoped to only the steps that don't use xcodebuild. |
149 |
| - ZAP_VERSION: v2023.01.19-nightly |
150 |
| - ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly |
151 | 127 | - name: Delete Defaults
|
152 | 128 | run: defaults delete com.apple.dt.xctest.tool
|
153 | 129 | continue-on-error: true
|
|
0 commit comments