Skip to content

Commit

Permalink
Install zap on all darwin CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Dec 8, 2022
1 parent 27c6b7e commit d435071
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ jobs:
timeout-minutes: 200
runs-on: macos-latest
if: github.actor != 'restyled-io[bot]'

env:
# NOTE: zap version should be kept in sync with the image used by
# Docker, currently connectedhomeip/chip-build:0.6.17
ZAP_VERSION: v2022.11.29-nightly
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2022.11.29-nightly

steps:
- uses: Wandalen/[email protected]
Expand Down Expand Up @@ -393,6 +399,15 @@ 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
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/darwin-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ 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: zap version should be kept in sync with the image used by
# Docker, currently connectedhomeip/chip-build:0.6.17
ZAP_VERSION: v2022.11.29-nightly
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2022.11.29-nightly

if: github.actor != 'restyled-io[bot]'
runs-on: macos-latest
Expand Down Expand Up @@ -72,6 +76,15 @@ 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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:

env:
# NOTE: zap version should be kept in sync with the image used by
# Docker, currently connectedhomeip/chip-build:0.6.17
ZAP_VERSION: v2022.11.29-nightly
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2022.11.29-nightly
# Docker, currently connectedhomeip/chip-build:0.6.17
ZAP_VERSION: v2022.11.29-nightly
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2022.11.29-nightly

steps:
- uses: Wandalen/[email protected]
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/fuzzing-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ jobs:
runs-on: macos-latest
if: github.actor != 'restyled-io[bot]'

env:
# NOTE: zap version should be kept in sync with the image used by
# Docker, currently connectedhomeip/chip-build:0.6.17
ZAP_VERSION: v2022.11.29-nightly
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2022.11.29-nightly

steps:
- uses: Wandalen/[email protected]
name: Checkout
Expand All @@ -111,6 +117,15 @@ 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
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ 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: zap version should be kept in sync with the image used by
# Docker, currently connectedhomeip/chip-build:0.6.17
ZAP_VERSION: v2022.11.29-nightly
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2022.11.29-nightly

if: github.actor != 'restyled-io[bot]'
runs-on: macos-latest
Expand Down Expand Up @@ -275,6 +279,15 @@ 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
Expand Down Expand Up @@ -501,6 +514,10 @@ jobs:
env:
BUILD_VARIANT: ${{matrix.build_variant}}
TSAN_OPTIONS: "halt_on_error=1"
# NOTE: zap version should be kept in sync with the image used by
# Docker, currently connectedhomeip/chip-build:0.6.17
ZAP_VERSION: v2022.11.29-nightly
ZAP_INSTALL_PATH: /usr/local/zap/zap-v2022.11.29-nightly

if: github.actor != 'restyled-io[bot]' && false
runs-on: macos-latest
Expand Down Expand Up @@ -528,6 +545,15 @@ 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
Expand Down

0 comments on commit d435071

Please sign in to comment.