Enable building of DevTools and scheduling profiler in CI (#19691)
Re-enables building of main DevTools in CI and add new CI target for building the scheduling profiler.
E-Liang Tan committed
Sep 21, 2020 at 23:49 UTC
6d73063ddf51be3b7885d83a1a6171448492c895
1 file changed
+38
-8
.circleci/config.yml
+38
-8
@@ -7,6 +7,11 @@ aliases:
7
- &environment
8
TZ: /usr/share/zoneinfo/America/Los_Angeles
9
10
+ - &restore_yarn_cache
11
+ restore_cache:
12
+ name: Restore yarn cache
13
+ key: v2-node-{{ arch }}-{{ checksum "yarn.lock" }}-yarn
14
+
15
- &restore_node_modules
16
restore_cache:
17
name: Restore node_modules cache
@@ -52,9 +57,7 @@ jobs:
57
- run:
58
name: Nodejs Version
59
command: node --version
55
- - restore_cache:
56
- name: Restore yarn cache
57
- key: v2-node-{{ arch }}-{{ checksum "yarn.lock" }}-yarn
60
+ - *restore_yarn_cache
61
- run:
62
name: Install Packages
63
command: yarn --frozen-lockfile --cache-folder ~/.cache/yarn
@@ -273,11 +276,14 @@ jobs:
276
build_devtools_and_process_artifacts:
277
docker: *docker
278
environment: *environment
276
- parallelism: 20
279
steps:
280
- checkout
281
- attach_workspace: *attach_workspace
282
+ - *restore_yarn_cache
283
- *restore_node_modules
284
+ - run:
285
+ name: Install Packages
286
+ command: yarn --frozen-lockfile --cache-folder ~/.cache/yarn
287
- run:
288
environment:
289
RELEASE_CHANNEL: experimental
@@ -285,6 +291,28 @@ jobs:
291
- store_artifacts:
292
path: ./build/devtools.tgz
293
294
+ build_devtools_scheduling_profiler:
295
+ docker: *docker
296
+ environment: *environment
297
+ steps:
298
+ - checkout
299
+ - attach_workspace: *attach_workspace
300
+ - *restore_yarn_cache
301
+ - *restore_node_modules
302
+ - run:
303
+ name: Install Packages
304
+ command: yarn --frozen-lockfile --cache-folder ~/.cache/yarn
305
+ - run:
306
+ name: Build and archive
307
+ command: |
308
+ mkdir -p build/devtools
309
+ cd packages/react-devtools-scheduling-profiler
310
+ yarn build
311
+ cd dist
312
+ tar -zcvf ../../../build/devtools-scheduling-profiler.tgz .
313
+ - store_artifacts:
314
+ path: ./build/devtools-scheduling-profiler.tgz
315
+
316
# These jobs are named differently so we can distinguish the stable and
317
# and experimental artifacts
318
process_artifacts: *process_artifacts
@@ -517,10 +545,12 @@ workflows:
545
- yarn_test_build_devtools:
546
requires:
547
- yarn_build
520
- # FIXME: Temporarily disabled to unblock master.
521
- # - build_devtools_and_process_artifacts:
522
- # requires:
523
- # - yarn_build
548
+ - build_devtools_and_process_artifacts:
549
+ requires:
550
+ - yarn_build
551
+ - build_devtools_scheduling_profiler:
552
+ requires:
553
+ - yarn_build
554
555
fuzz_tests:
556
triggers: