Skip to content

Commit 4a896b0

Browse files
authored
chore(actions): update CI workflows (#27)
* chore: change push/pr paths * chore: add pprofrs backend workflow * chore: test workflow * chore: pyspy workflow * chore: fix name * chore: rbspy workflow * chore: ci instead of build * chore: fix file path * chore: trigger workflow * chore: pyspy/rbspy worflow updates
1 parent 2d268d7 commit 4a896b0

File tree

5 files changed

+163
-8
lines changed

5 files changed

+163
-8
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ name: Build
33
on:
44
push:
55
paths:
6-
- 'pyroscope_backends/**'
7-
- 'pyroscope_cli/**'
86
- 'src/**'
97
- 'tests/**'
108
- '.github/workflows/build.yml'
119
pull_request:
1210
paths:
13-
- 'pyroscope_backends/**'
14-
- 'pyroscope_cli/**'
1511
- 'src/**'
1612
- 'tests/**'
1713
- '.github/workflows/build.yml'
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI pprof-rs Backend
2+
3+
on:
4+
push:
5+
paths:
6+
- 'pyroscope_backends/pyroscope_pprofrs/**'
7+
- '.github/workflows/ci-backend-pprof.yml'
8+
pull_request:
9+
paths:
10+
- 'pyroscope_backends/pyroscope_pprofrs/**'
11+
- '.github/workflows/ci-backend-pprof.yml'
12+
13+
jobs:
14+
build:
15+
name: ${{ matrix.os }} - ${{ matrix.target }}
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, macos-latest]
20+
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, x86_64-apple-darwin, aarch64-apple-darwin]
21+
exclude:
22+
- os: ubuntu-latest
23+
target: x86_64-apple-darwin
24+
- os: ubuntu-latest
25+
target: aarch64-apple-darwin
26+
- os: macos-latest
27+
target: x86_64-unknown-linux-gnu
28+
- os: macos-latest
29+
target: aarch64-unknown-linux-gnu
30+
steps:
31+
- name: install libunwind (for pprof)
32+
if: matrix.os == 'ubuntu-latest'
33+
continue-on-error: true
34+
run: sudo apt install libunwind8-dev
35+
36+
- name: Checkout sources
37+
uses: actions/checkout@v2
38+
39+
- name: Install stable toolchain
40+
uses: omarabid-forks/rs-toolchain@v1
41+
with:
42+
profile: minimal
43+
toolchain: stable
44+
override: true
45+
46+
- name: Cargo build for pprof-rs
47+
uses: omarabid-forks/rs-cargo@v1
48+
with:
49+
args: --manifest-path pyroscope_backends/pyroscope_pprofrs/Cargo.toml
50+
command: build
51+
52+
- name: Tests for pprof-rs
53+
uses: omarabid-forks/rs-cargo@v1
54+
with:
55+
args: --manifest-path pyroscope_backends/pyroscope_pprofrs/Cargo.toml
56+
command: test
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI Pyspy Backend
2+
3+
on:
4+
push:
5+
paths:
6+
- 'pyroscope_backends/pyroscope_pyspy/**'
7+
- '.github/workflows/ci-backend-pyspy.yml'
8+
pull_request:
9+
paths:
10+
- 'pyroscope_backends/pyroscope_pyspy/**'
11+
- '.github/workflows/ci-backend-pyspy.yml'
12+
13+
jobs:
14+
build:
15+
name: ${{ matrix.os }} - ${{ matrix.target }}
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, macos-latest]
20+
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, x86_64-apple-darwin, aarch64-apple-darwin]
21+
exclude:
22+
- os: ubuntu-latest
23+
target: x86_64-apple-darwin
24+
- os: ubuntu-latest
25+
target: aarch64-apple-darwin
26+
- os: macos-latest
27+
target: x86_64-unknown-linux-gnu
28+
- os: macos-latest
29+
target: aarch64-unknown-linux-gnu
30+
steps:
31+
- name: install libunwind (for pyspy)
32+
if: matrix.os == 'ubuntu-latest'
33+
continue-on-error: true
34+
run: sudo apt install libunwind8-dev
35+
36+
- name: Checkout sources
37+
uses: actions/checkout@v2
38+
39+
- name: Install stable toolchain
40+
uses: omarabid-forks/rs-toolchain@v1
41+
with:
42+
profile: minimal
43+
toolchain: stable
44+
override: true
45+
46+
- name: Cargo build for pyspy
47+
uses: omarabid-forks/rs-cargo@v1
48+
with:
49+
args: --manifest-path pyroscope_backends/pyroscope_pyspy/Cargo.toml
50+
command: build
51+
52+
- name: Tests for pyspy
53+
uses: omarabid-forks/rs-cargo@v1
54+
with:
55+
args: --manifest-path pyroscope_backends/pyroscope_pyspy/Cargo.toml
56+
command: test
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI Rbspy Backend
2+
3+
on:
4+
push:
5+
paths:
6+
- 'pyroscope_backends/pyroscope_rbspy/**'
7+
- '.github/workflows/ci-backend-rbspy.yml'
8+
pull_request:
9+
paths:
10+
- 'pyroscope_backends/pyroscope_rbspy/**'
11+
- '.github/workflows/ci-backend-rbspy.yml'
12+
13+
jobs:
14+
build:
15+
name: ${{ matrix.os }} - ${{ matrix.target }}
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, macos-latest]
20+
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, x86_64-apple-darwin, aarch64-apple-darwin]
21+
exclude:
22+
- os: ubuntu-latest
23+
target: x86_64-apple-darwin
24+
- os: ubuntu-latest
25+
target: aarch64-apple-darwin
26+
- os: macos-latest
27+
target: x86_64-unknown-linux-gnu
28+
- os: macos-latest
29+
target: aarch64-unknown-linux-gnu
30+
steps:
31+
- name: Checkout sources
32+
uses: actions/checkout@v2
33+
34+
- name: Install stable toolchain
35+
uses: omarabid-forks/rs-toolchain@v1
36+
with:
37+
profile: minimal
38+
toolchain: stable
39+
override: true
40+
41+
- name: Cargo build for Rbspy
42+
uses: omarabid-forks/rs-cargo@v1
43+
with:
44+
args: --manifest-path pyroscope_backends/pyroscope_rbspy/Cargo.toml
45+
command: build
46+
47+
- name: Tests for Rbspy
48+
uses: omarabid-forks/rs-cargo@v1
49+
with:
50+
args: --manifest-path pyroscope_backends/pyroscope_rbspy/Cargo.toml
51+
command: test

.github/workflows/tests.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ name: Tests
33
on:
44
push:
55
paths:
6-
- 'pyroscope_backends/**'
7-
- 'pyroscope_cli/**'
86
- 'src/**'
97
- 'tests/**'
108
- '.github/workflows/tests.yml'
119
pull_request:
1210
paths:
13-
- 'pyroscope_backends/**'
14-
- 'pyroscope_cli/**'
1511
- 'src/**'
1612
- 'tests/**'
1713
- '.github/workflows/tests.yml'

0 commit comments

Comments
 (0)