|
44 | 44 | shell: bash |
45 | 45 | run: echo "${{ github.workspace }}/packages/devtools-frontend-lynx/buildtools/depot_tools" >> $GITHUB_PATH |
46 | 46 |
|
| 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 | +
|
47 | 54 | # Restore caches for third-party resources (Node/mac, clang-format/mac, Chromium/mac) |
48 | 55 | - name: Restore Node (mac) cache |
49 | 56 | id: cache-node-mac-linux |
|
79 | 86 | run: | |
80 | 87 | set -euo pipefail |
81 | 88 | python3 buildtools/depot_tools/download_from_google_storage.py \ |
82 | | - --no_resume --extract --no_auth \ |
| 89 | + --no_resume --extract \ |
83 | 90 | --bucket chromium-nodejs/14.15.4 \ |
84 | 91 | -s third_party/node/mac/node-darwin-x64.tar.gz.sha1 |
85 | 92 |
|
|
89 | 96 | run: | |
90 | 97 | set -euo pipefail |
91 | 98 | python3 buildtools/depot_tools/download_from_google_storage.py \ |
92 | | - --no_resume --no_auth \ |
| 99 | + --no_resume \ |
93 | 100 | --bucket chromium-clang-format \ |
94 | 101 | -s buildtools/mac/clang-format.sha1 |
95 | 102 |
|
|
98 | 105 | working-directory: packages/devtools-frontend-lynx |
99 | 106 | run: | |
100 | 107 | set -euo pipefail |
101 | | - python3 scripts/deps/download_chromium.py \ |
| 108 | + vpython scripts/deps/download_chromium.py \ |
102 | 109 | https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/902866/chrome-mac.zip \ |
103 | 110 | third_party/chrome \ |
104 | 111 | chrome-mac/Chromium.app/Contents \ |
@@ -205,8 +212,7 @@ jobs: |
205 | 212 | restore-keys: | |
206 | 213 | chrome-mac- |
207 | 214 |
|
208 | | - - name: ln Python |
209 | | - run: ln -s `which python3` /usr/local/bin/python |
| 215 | + |
210 | 216 |
|
211 | 217 | # Node and pnpm setup steps |
212 | 218 | - name: Setup Node.js |
@@ -238,6 +244,19 @@ jobs: |
238 | 244 | - name: Fetch depot_tools |
239 | 245 | run: pnpm run fetch:depot_tools |
240 | 246 |
|
| 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 | +
|
241 | 260 | - name: Sync devtools-gn |
242 | 261 | run: | |
243 | 262 | export PATH=$(pwd)/packages/devtools-frontend-lynx/buildtools/depot_tools:$PATH |
|
0 commit comments