Skip to content

Commit 573314f

Browse files
committed
infra: move more res to cache in release pipeline
1 parent 2ab5392 commit 573314f

1 file changed

Lines changed: 24 additions & 5 deletions

File tree

.github/workflows/release.yaml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ jobs:
4444
shell: bash
4545
run: echo "${{ github.workspace }}/packages/devtools-frontend-lynx/buildtools/depot_tools" >> $GITHUB_PATH
4646

47+
- name: Sync DEPS to materialize buildtools (no hooks)
48+
shell: bash
49+
working-directory: packages/devtools-frontend-lynx
50+
run: |
51+
set -euo pipefail
52+
gclient sync --gclientfile=.gclient --deps=all --nohooks
53+
4754
# Restore caches for third-party resources (Node/mac, clang-format/mac, Chromium/mac)
4855
- name: Restore Node (mac) cache
4956
id: cache-node-mac-linux
@@ -79,7 +86,7 @@ jobs:
7986
run: |
8087
set -euo pipefail
8188
python3 buildtools/depot_tools/download_from_google_storage.py \
82-
--no_resume --extract --no_auth \
89+
--no_resume --extract \
8390
--bucket chromium-nodejs/14.15.4 \
8491
-s third_party/node/mac/node-darwin-x64.tar.gz.sha1
8592
@@ -89,7 +96,7 @@ jobs:
8996
run: |
9097
set -euo pipefail
9198
python3 buildtools/depot_tools/download_from_google_storage.py \
92-
--no_resume --no_auth \
99+
--no_resume \
93100
--bucket chromium-clang-format \
94101
-s buildtools/mac/clang-format.sha1
95102
@@ -98,7 +105,7 @@ jobs:
98105
working-directory: packages/devtools-frontend-lynx
99106
run: |
100107
set -euo pipefail
101-
python3 scripts/deps/download_chromium.py \
108+
vpython scripts/deps/download_chromium.py \
102109
https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/902866/chrome-mac.zip \
103110
third_party/chrome \
104111
chrome-mac/Chromium.app/Contents \
@@ -205,8 +212,7 @@ jobs:
205212
restore-keys: |
206213
chrome-mac-
207214
208-
- name: ln Python
209-
run: ln -s `which python3` /usr/local/bin/python
215+
210216

211217
# Node and pnpm setup steps
212218
- name: Setup Node.js
@@ -238,6 +244,19 @@ jobs:
238244
- name: Fetch depot_tools
239245
run: pnpm run fetch:depot_tools
240246

247+
- name: Add depot_tools to PATH (mac)
248+
shell: bash
249+
run: echo "$(pwd)/packages/devtools-frontend-lynx/buildtools/depot_tools" >> $GITHUB_PATH
250+
251+
- name: Symlink python to vpython (mac)
252+
shell: bash
253+
run: |
254+
set -euo pipefail
255+
which vpython || {
256+
echo "vpython not found in PATH"; exit 1;
257+
}
258+
sudo ln -sf "$(which vpython)" /usr/local/bin/python
259+
241260
- name: Sync devtools-gn
242261
run: |
243262
export PATH=$(pwd)/packages/devtools-frontend-lynx/buildtools/depot_tools:$PATH

0 commit comments

Comments
 (0)