Skip to content

Commit 1fc74c8

Browse files
authored
build: enable perfetto updater
Signed-off-by: Chengzhong Wu <legendecas@gmail.com> PR-URL: #64966 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent 8465148 commit 1fc74c8

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/tools.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ on:
3535
- nghttp2
3636
- nghttp3
3737
- ngtcp2
38+
- perfetto
3839
- postject
3940
- root-certificates
4041
- simdjson
@@ -237,6 +238,14 @@ jobs:
237238
cat temp-output
238239
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
239240
rm temp-output
241+
- id: perfetto
242+
subsystem: deps
243+
label: dependencies
244+
run: |
245+
./tools/dep_updaters/update-perfetto.sh > temp-output
246+
cat temp-output
247+
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
248+
rm temp-output
240249
- id: postject
241250
subsystem: deps,test
242251
label: test

tools/dep_updaters/update-perfetto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ echo "$NEW_VERSION" > perfetto/VERSION
5757
curl -sL -o "perfetto/LICENSE" "https://raw.githubusercontent.com/google/perfetto/refs/tags/$PERFETTO_REF/LICENSE"
5858

5959
# Remove C API headers. Only keep C++ API headers.
60-
rm perfetto/sdk/perfetto_c.h perfetto/sdk/perfetto_c.cc
60+
rm -f perfetto/sdk/perfetto_c.h perfetto/sdk/perfetto_c.cc
6161

6262
echo "Copying existing gyp files"
6363
cp "$DEPS_DIR/perfetto/perfetto.gyp" "$WORKSPACE/perfetto"

0 commit comments

Comments
 (0)