-
Notifications
You must be signed in to change notification settings - Fork 33
54 lines (51 loc) · 1.81 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build & Test
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-20.04
container:
image: centos:7
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: |
yum update -y
yum install -y make python3 gcc
python3 -m pip install --upgrade pip
- name: build
run: |
pip3 install -r requirements.txt
make dist
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: perfspect
path: dist/perfspect*.tgz
build-hotspot:
runs-on: ubuntu-20.04
container:
image: centos:7
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: |
yum update -y
yum install -y make python3 gcc cmake gcc-c++ java-1.8.0-openjdk-devel.x86_64 git
python3 -m pip install --upgrade pip
curl -LJO https://raw.githubusercontent.com/brendangregg/FlameGraph/master/flamegraph.pl
curl -LJO https://raw.githubusercontent.com/brendangregg/FlameGraph/master/difffolded.pl
curl -LJO https://raw.githubusercontent.com/brendangregg/FlameGraph/master/stackcollapse-perf.pl
chmod +x *.pl
git clone https://github.com/jvm-profiling-tools/perf-map-agent.git
cd perf-map-agent
cmake .
make
- name: build
run: |
pip3 install -r requirements.txt
pyinstaller -F hotspot.py -n hotspot --bootloader-ignore-signals --add-data "perf-map-agent/out/*:." --add-data "flamegraph.pl:." --add-data "difffolded.pl:." --add-data "stackcollapse-perf.pl:." --runtime-tmpdir . --exclude-module readline
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: hotspot
path: dist/hotspot