Skip to content

Commit

Permalink
Add depot_tools to PATH in test
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Feb 6, 2024
1 parent 83a49dd commit f55a771
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/mac-build.yml
Expand Up @@ -50,7 +50,7 @@ jobs:
run: |
cd src/electron
node script/yarn install
- name: Get Depot Tools
- name: Get Depot Tools
run: |
git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
if [ "`uname`" == "Darwin" ]; then
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
run: |
cd src/electron
node script/yarn install
- name: Get Depot Tools
- name: Get Depot Tools
run: |
git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
if [ "`uname`" == "Darwin" ]; then
Expand Down Expand Up @@ -460,6 +460,23 @@ jobs:
run: |
cd src/electron
node script/yarn install
- name: Get Depot Tools
run: |
git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
if [ "`uname`" == "Darwin" ]; then
# remove ninjalog_uploader_wrapper.py from autoninja since we don't use it and it causes problems
sed -i '' '/ninjalog_uploader_wrapper.py/d' ./depot_tools/autoninja
else
sed -i '/ninjalog_uploader_wrapper.py/d' ./depot_tools/autoninja
# Remove swift-format dep from cipd on macOS until we send a patch upstream.
cd depot_tools
git apply --3way ../src/electron/.github/workflows/config/gclient.diff
fi
# Ensure depot_tools does not update.
test -d depot_tools && cd depot_tools
touch .disable_auto_update
- name: Add Depot Tools to PATH
run: echo "$(pwd)/depot_tools" >> $GITHUB_PATH
- name: Download Generated Artifacts
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit f55a771

Please sign in to comment.