Skip to content

Commit cc2d547

Browse files
committed
build: run perfetto build and test on GHA
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
1 parent 9041ad0 commit cc2d547

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Test Linux (with Perfetto)
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths-ignore:
7+
- .mailmap
8+
- README.md
9+
- vcbuild.bat
10+
- tools/actions/**
11+
- tools/clang-format/**
12+
- tools/dep_updaters/**
13+
- test/internet/**
14+
- '**.nix'
15+
- .github/**
16+
- '!.github/workflows/test-linux-perfetto.yml'
17+
types: [opened, synchronize, reopened, ready_for_review]
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
21+
cancel-in-progress: true
22+
23+
env:
24+
PYTHON_VERSION: '3.14'
25+
FLAKY_TESTS: keep_retrying
26+
CLANG_VERSION: '19'
27+
CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang-19
28+
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
29+
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
30+
SCCACHE_IDLE_TIMEOUT: '0'
31+
RUSTC_VERSION: '1.83'
32+
33+
permissions:
34+
contents: read
35+
36+
jobs:
37+
test-perfetto:
38+
if: github.event.pull_request.draft == false
39+
runs-on: ubuntu-24.04-arm
40+
steps:
41+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
42+
with:
43+
persist-credentials: false
44+
path: node
45+
- name: Install Clang ${{ env.CLANG_VERSION }}
46+
uses: ./node/.github/actions/install-clang
47+
with:
48+
clang-version: ${{ env.CLANG_VERSION }}
49+
- name: Install Rust ${{ env.RUSTC_VERSION }}
50+
run: |
51+
rustup override set "$RUSTC_VERSION"
52+
rustup --version
53+
- name: Set up Python ${{ env.PYTHON_VERSION }}
54+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
55+
with:
56+
python-version: ${{ env.PYTHON_VERSION }}
57+
allow-prereleases: true
58+
- name: Set up sccache
59+
if: github.base_ref == 'main' || github.ref_name == 'main'
60+
uses: Mozilla-Actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
61+
with:
62+
version: v0.16.0
63+
- name: Build
64+
working-directory: node
65+
run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --v8-enable-temporal-support --with-perfetto"
66+
- name: Test
67+
working-directory: node
68+
run: make test-ci -j1 V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9"
69+
- name: Ensure running tests did not cause any change in the tree
70+
working-directory: node
71+
run: git add -A && git diff --name-only --exit-code --staged

0 commit comments

Comments
 (0)