Skip to content

Commit b55eae0

Browse files
cdamuswpaul-samsungdfriederich
committed
Build workflow and publish SDK
- prepare UI Build Workflow. Manual trigger for building the Perfetto UI without releasing it - added the generated Perfetto SDK files to git, which otherwise are only added to the upstream Perfetto repository release branches Co-authored-by: Warren Paul <w.paul@samsung.com> Co-authored-by: dfriederich <109323095+dfriederich@users.noreply.github.com> Signed-off-by: Christian W. Damus <cdamus.ext@eclipsesource.com>
1 parent ca3afcc commit b55eae0

File tree

3 files changed

+247398
-0
lines changed

3 files changed

+247398
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Publish Perfetto UI
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- sokatoa
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Set Git Short SHA
19+
id: sha
20+
run: echo "sha_short=$(git rev-parse --short=14 HEAD)" >> $GITHUB_OUTPUT
21+
- name: Install Dependencies
22+
run: tools/install-build-deps --ui
23+
- name: Run Build
24+
run: ui/build --electron
25+
- name: Create Archive
26+
run: zip -r perfetto-ui-${{ steps.sha.outputs.sha_short }}.zip ui/wasm ui/css ui/out/tsc ui/src/gen/protos.* -x "ui/out/tsc/node_modules/*"
27+
- name: Publish Archive
28+
uses: 'marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1'
29+
with:
30+
repo_token: '${{ secrets.GITHUB_TOKEN }}'
31+
title: 'Perfetto UI - ${{ steps.sha.outputs.sha_short }}'
32+
automatic_release_tag: 'perfetto-ui-${{ steps.sha.outputs.sha_short }}'
33+
files: |
34+
perfetto-ui-${{ steps.sha.outputs.sha_short }}.zip

0 commit comments

Comments
 (0)