-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove zap checkout for darwin builds in CI, assume CIPD provides this (
#24677) * Remove zap checkout for darwin builds in CI, assume CIPD provides this. If this works, we can work on modifying the dockerfiles for linux too * Make zap-cli NOT available for xcodebuild * Add --version to zap-cli to not try to run more things * The zap test should be under the build environment, to get the path working * Run in build environment when checking for zap --------- Co-authored-by: Andrei Litvin <[email protected]>
- Loading branch information
Showing
6 changed files
with
28 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -352,12 +352,6 @@ jobs: | |
timeout-minutes: 200 | ||
runs-on: macos-latest | ||
if: github.actor != 'restyled-io[bot]' | ||
|
||
env: | ||
# NOTE: Generally kept in sync within the repo using | ||
# scripts/tools/zap/version_update.py | ||
ZAP_VERSION: v2023.01.19-nightly | ||
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly | ||
|
||
steps: | ||
- uses: Wandalen/[email protected] | ||
|
@@ -388,16 +382,6 @@ jobs: | |
ls -la /usr/local/Cellar/[email protected] | ||
OPEN_SSL_VERSION=`ls -la /usr/local/Cellar/[email protected] | cat | tail -n1 | awk '{print $NF}'` | ||
ln -s /usr/local/Cellar/[email protected]/$OPEN_SSL_VERSION/lib/pkgconfig/* . | ||
- name: Install zap | ||
run: | | ||
sudo mkdir -p $ZAP_INSTALL_PATH | ||
sudo chown `whoami` $ZAP_INSTALL_PATH | ||
curl -L https://github.com/project-chip/zap/releases/download/${ZAP_VERSION}/zap-mac.zip \ | ||
--output $ZAP_INSTALL_PATH/zap-mac.zip | ||
cd $ZAP_INSTALL_PATH | ||
unzip zap-mac.zip zap-cli | ||
rm zap-mac.zip | ||
./zap-cli --version | ||
- name: Bootstrap | ||
timeout-minutes: 25 | ||
run: scripts/build/gn_bootstrap.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,10 +39,6 @@ jobs: | |
env: | ||
BUILD_VARIANT: ${{matrix.build_variant}} | ||
LSAN_OPTIONS: detect_leaks=1 malloc_context_size=40 suppressions=scripts/tests/chiptest/lsan-mac-suppressions.txt | ||
# NOTE: Generally kept in sync within the repo using | ||
# scripts/tools/zap/version_update.py | ||
ZAP_VERSION: v2023.01.19-nightly | ||
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly | ||
|
||
if: github.actor != 'restyled-io[bot]' | ||
runs-on: macos-latest | ||
|
@@ -76,16 +72,6 @@ jobs: | |
ls -la /usr/local/Cellar/[email protected] | ||
OPEN_SSL_VERSION=`ls -la /usr/local/Cellar/[email protected] | cat | tail -n1 | awk '{print $NF}'` | ||
ln -s /usr/local/Cellar/[email protected]/$OPEN_SSL_VERSION/lib/pkgconfig/* . | ||
- name: Install zap | ||
run: | | ||
sudo mkdir -p $ZAP_INSTALL_PATH | ||
sudo chown `whoami` $ZAP_INSTALL_PATH | ||
curl -L https://github.com/project-chip/zap/releases/download/${ZAP_VERSION}/zap-mac.zip \ | ||
--output $ZAP_INSTALL_PATH/zap-mac.zip | ||
cd $ZAP_INSTALL_PATH | ||
unzip zap-mac.zip zap-cli | ||
rm zap-mac.zip | ||
./zap-cli --version | ||
- name: Bootstrap | ||
timeout-minutes: 25 | ||
run: scripts/build/gn_bootstrap.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,22 +52,6 @@ jobs: | |
ls -la /usr/local/Cellar/[email protected] | ||
OPEN_SSL_VERSION=`ls -la /usr/local/Cellar/[email protected] | cat | tail -n1 | awk '{print $NF}'` | ||
ln -s /usr/local/Cellar/[email protected]/$OPEN_SSL_VERSION/lib/pkgconfig/* . | ||
- name: Install zap | ||
run: | | ||
sudo mkdir -p $ZAP_INSTALL_PATH | ||
sudo chown `whoami` $ZAP_INSTALL_PATH | ||
curl -L https://github.com/project-chip/zap/releases/download/${ZAP_VERSION}/zap-mac.zip \ | ||
--output $ZAP_INSTALL_PATH/zap-mac.zip | ||
cd $ZAP_INSTALL_PATH | ||
unzip zap-mac.zip zap-cli | ||
rm zap-mac.zip | ||
./zap-cli --version | ||
env: | ||
# NOTE: Generally kept in sync within the repo using | ||
# scripts/tools/zap/version_update.py | ||
# This is scoped to only the steps that don't use xcodebuild. | ||
ZAP_VERSION: v2023.01.19-nightly | ||
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly | ||
- name: Bootstrap | ||
timeout-minutes: 25 | ||
run: scripts/build/gn_bootstrap.sh | ||
|
@@ -79,6 +63,12 @@ jobs: | |
path: | | ||
.environment/gn_out/.ninja_log | ||
.environment/pigweed-venv/*.log | ||
- name: Block zap-cli from being used | ||
# xcodebuild is NOT expected to require zap-cli | ||
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' | ||
- name: Validate zap-cli is NOT available | ||
# run_in_build_env.sh is used to ensure PATH is set to something that would otherwise find zap-cli | ||
run: scripts/run_in_build_env.sh '(zap-cli --version && exit 1) || exit 0' | ||
- name: Run iOS Build Debug | ||
timeout-minutes: 50 | ||
working-directory: src/darwin/Framework | ||
|
@@ -118,36 +108,22 @@ jobs: | |
- name: Clean Build | ||
run: xcodebuild clean | ||
working-directory: src/darwin/Framework | ||
- name: Make zap-cli work again | ||
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' | ||
- name: Validate zap-cli is again available | ||
run: scripts/run_in_build_env.sh 'zap-cli --version' | ||
- name: Build example All Clusters Server | ||
timeout-minutes: 15 | ||
run: | | ||
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug chip_config_network_layer_ble=false | ||
env: | ||
# NOTE: Generally kept in sync within the repo using | ||
# scripts/tools/zap/version_update.py | ||
# This is scoped to only the steps that don't use xcodebuild. | ||
ZAP_VERSION: v2023.01.19-nightly | ||
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly | ||
- name: Build example OTA Provider | ||
timeout-minutes: 10 | ||
run: | | ||
scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug chip_config_network_layer_ble=false | ||
env: | ||
# NOTE: Generally kept in sync within the repo using | ||
# scripts/tools/zap/version_update.py | ||
# This is scoped to only the steps that don't use xcodebuild. | ||
ZAP_VERSION: v2023.01.19-nightly | ||
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly | ||
- name: Build example OTA Requestor | ||
timeout-minutes: 10 | ||
run: | | ||
scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux out/debug chip_config_network_layer_ble=false | ||
env: | ||
# NOTE: Generally kept in sync within the repo using | ||
# scripts/tools/zap/version_update.py | ||
# This is scoped to only the steps that don't use xcodebuild. | ||
ZAP_VERSION: v2023.01.19-nightly | ||
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly | ||
- name: Delete Defaults | ||
run: defaults delete com.apple.dt.xctest.tool | ||
continue-on-error: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,12 +88,6 @@ jobs: | |
runs-on: macos-latest | ||
if: github.actor != 'restyled-io[bot]' | ||
|
||
env: | ||
# NOTE: Generally kept in sync within the repo using | ||
# scripts/tools/zap/version_update.py | ||
ZAP_VERSION: v2023.01.19-nightly | ||
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly | ||
|
||
steps: | ||
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
|
@@ -117,16 +111,6 @@ jobs: | |
ls -la /usr/local/Cellar/[email protected] | ||
OPEN_SSL_VERSION=`ls -la /usr/local/Cellar/[email protected] | cat | tail -n1 | awk '{print $NF}'` | ||
ln -s /usr/local/Cellar/[email protected]/$OPEN_SSL_VERSION/lib/pkgconfig/* . | ||
- name: Install zap | ||
run: | | ||
sudo mkdir -p $ZAP_INSTALL_PATH | ||
sudo chown `whoami` $ZAP_INSTALL_PATH | ||
curl -L https://github.com/project-chip/zap/releases/download/${ZAP_VERSION}/zap-mac.zip \ | ||
--output $ZAP_INSTALL_PATH/zap-mac.zip | ||
cd $ZAP_INSTALL_PATH | ||
unzip zap-mac.zip zap-cli | ||
rm zap-mac.zip | ||
./zap-cli --version | ||
- name: Bootstrap | ||
timeout-minutes: 25 | ||
run: scripts/build/gn_bootstrap.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,10 +260,6 @@ jobs: | |
CHIP_TOOL_VARIANT: ${{matrix.chip_tool}} | ||
TSAN_OPTIONS: "halt_on_error=1" | ||
LSAN_OPTIONS: detect_leaks=1 suppressions=scripts/tests/chiptest/lsan-mac-suppressions.txt | ||
# NOTE: Generally kept in sync within the repo using | ||
# scripts/tools/zap/version_update.py | ||
ZAP_VERSION: v2023.01.19-nightly | ||
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly | ||
|
||
if: github.actor != 'restyled-io[bot]' | ||
runs-on: macos-latest | ||
|
@@ -297,15 +293,6 @@ jobs: | |
ls -la /usr/local/Cellar/[email protected] | ||
OPEN_SSL_VERSION=`ls -la /usr/local/Cellar/[email protected] | cat | tail -n1 | awk '{print $NF}'` | ||
ln -s /usr/local/Cellar/[email protected]/$OPEN_SSL_VERSION/lib/pkgconfig/* . | ||
- name: Install zap | ||
run: | | ||
sudo mkdir -p $ZAP_INSTALL_PATH | ||
sudo chown `whoami` $ZAP_INSTALL_PATH | ||
curl -L https://github.com/project-chip/zap/releases/download/${ZAP_VERSION}/zap-mac.zip \ | ||
--output $ZAP_INSTALL_PATH/zap-mac.zip | ||
cd $ZAP_INSTALL_PATH | ||
unzip zap-mac.zip zap-cli | ||
rm zap-mac.zip | ||
- name: Bootstrap | ||
timeout-minutes: 25 | ||
run: scripts/build/gn_bootstrap.sh | ||
|
@@ -546,10 +533,6 @@ jobs: | |
env: | ||
BUILD_VARIANT: ${{matrix.build_variant}} | ||
TSAN_OPTIONS: "halt_on_error=1" | ||
# NOTE: Generally kept in sync within the repo using | ||
# scripts/tools/zap/version_update.py | ||
ZAP_VERSION: v2023.01.19-nightly | ||
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2023.01.19-nightly | ||
|
||
if: github.actor != 'restyled-io[bot]' && false | ||
runs-on: macos-latest | ||
|
@@ -577,15 +560,6 @@ jobs: | |
ls -la /usr/local/Cellar/[email protected] | ||
OPEN_SSL_VERSION=`ls -la /usr/local/Cellar/[email protected] | cat | tail -n1 | awk '{print $NF}'` | ||
ln -s /usr/local/Cellar/[email protected]/$OPEN_SSL_VERSION/lib/pkgconfig/* . | ||
- name: Install zap | ||
run: | | ||
sudo mkdir -p $ZAP_INSTALL_PATH | ||
sudo chown `whoami` $ZAP_INSTALL_PATH | ||
curl -L https://github.com/project-chip/zap/releases/download/${ZAP_VERSION}/zap-mac.zip \ | ||
--output $ZAP_INSTALL_PATH/zap-mac.zip | ||
cd $ZAP_INSTALL_PATH | ||
unzip zap-mac.zip zap-cli | ||
rm zap-mac.zip | ||
- name: Bootstrap | ||
timeout-minutes: 25 | ||
run: scripts/build/gn_bootstrap.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters