diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index e5ea38b755c3..666b5f33048e 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -35,6 +35,7 @@ on: - nghttp2 - nghttp3 - ngtcp2 + - perfetto - postject - root-certificates - simdjson @@ -237,6 +238,14 @@ jobs: cat temp-output tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true rm temp-output + - id: perfetto + subsystem: deps + label: dependencies + run: | + ./tools/dep_updaters/update-perfetto.sh > temp-output + cat temp-output + tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true + rm temp-output - id: postject subsystem: deps,test label: test diff --git a/tools/dep_updaters/update-perfetto.sh b/tools/dep_updaters/update-perfetto.sh index 516d7d6aa63b..493a8f8c57d1 100755 --- a/tools/dep_updaters/update-perfetto.sh +++ b/tools/dep_updaters/update-perfetto.sh @@ -57,7 +57,7 @@ echo "$NEW_VERSION" > perfetto/VERSION curl -sL -o "perfetto/LICENSE" "https://raw.githubusercontent.com/google/perfetto/refs/tags/$PERFETTO_REF/LICENSE" # Remove C API headers. Only keep C++ API headers. -rm perfetto/sdk/perfetto_c.h perfetto/sdk/perfetto_c.cc +rm -f perfetto/sdk/perfetto_c.h perfetto/sdk/perfetto_c.cc echo "Copying existing gyp files" cp "$DEPS_DIR/perfetto/perfetto.gyp" "$WORKSPACE/perfetto"