Skip to content

Commit 927dcf2

Browse files
authored
chore(cli): add adhoc (#115)
1 parent 2347d4c commit 927dcf2

File tree

13 files changed

+305
-563
lines changed

13 files changed

+305
-563
lines changed

.drone/drone.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,45 @@
11
---
22
kind: pipeline
3-
name: make cli/test
3+
name: '[amd64] make test'
44
platform:
55
arch: amd64
66
os: linux
77
steps:
88
- commands:
9-
- make cli/test
10-
image: grafana/agent-build-image:1
9+
- git submodule update --init --recursive
10+
image: alpine/git
11+
name: submodules
12+
- commands:
13+
- uname -a
14+
- make test
15+
image: pyroscope/rust_builder_cli:1
16+
name: make cli/test
17+
trigger:
18+
event:
19+
- pull_request
20+
type: docker
21+
---
22+
kind: pipeline
23+
name: '[arm64] make test'
24+
platform:
25+
arch: arm64
26+
os: linux
27+
steps:
28+
- commands:
29+
- git submodule update --init --recursive
30+
image: alpine/git
31+
name: submodules
32+
- commands:
33+
- uname -a
34+
- make test
35+
image: pyroscope/rust_builder_cli:1
1136
name: make cli/test
1237
trigger:
1338
event:
1439
- pull_request
1540
type: docker
1641
---
1742
kind: signature
18-
hmac: 4d1b6f4e26c9419cb25638d02d585eeb5c1c2b47b9c5775e377f36bf48f916c7
43+
hmac: f38ec1847fa65566c19f685da7928d2eb5cdc68295236e9a18080032a49edeca
1944

2045
...

.drone/pipelines/test.jsonnet

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,39 @@ local build_image = import '../util/build_image.jsonnet';
22
local pipelines = import '../util/pipelines.jsonnet';
33

44
[
5-
pipelines.linux('make cli/test') {
5+
// todo add macos builds
6+
pipelines.linux_amd64('[amd64] make test') {
67
trigger: {
78
event: ['pull_request'],
89
},
9-
steps: [{
10-
name: 'make cli/test',
11-
image: build_image.linux,
12-
commands: [
13-
'make cli/test',
14-
],
15-
}],
10+
steps: [
11+
{
12+
name: 'submodules',
13+
image: 'alpine/git',
14+
commands: ['git submodule update --init --recursive'],
15+
},
16+
{
17+
name: 'make cli/test',
18+
image: build_image.linux,
19+
commands: ['uname -a', 'make test'],
20+
},
21+
],
22+
},
23+
pipelines.linux_arm64('[arm64] make test') {
24+
trigger: {
25+
event: ['pull_request'],
26+
},
27+
steps: [
28+
{
29+
name: 'submodules',
30+
image: 'alpine/git',
31+
commands: ['git submodule update --init --recursive'],
32+
},
33+
{
34+
name: 'make cli/test',
35+
image: build_image.linux,
36+
commands: ['uname -a', 'make test'],
37+
},
38+
],
1639
},
1740
]

.drone/util/build_image.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
local version = std.extVar('BUILD_IMAGE_VERSION'),
33

4-
linux: 'grafana/agent-build-image:%s' % version,
4+
linux: 'pyroscope/rust_builder_cli:%s' % version,
55

66
}

.drone/util/pipelines.jsonnet

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
linux(name):: {
2+
linux_amd64(name):: {
33
kind: 'pipeline',
44
type: 'docker',
55
name: name,
@@ -8,4 +8,13 @@
88
arch: 'amd64',
99
},
1010
},
11+
linux_arm64(name):: {
12+
kind: 'pipeline',
13+
type: 'docker',
14+
name: name,
15+
platform: {
16+
os: 'linux',
17+
arch: 'arm64',
18+
},
19+
},
1120
}

.github/workflows/ci-backend-pprofrs.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/ci-backend-pyspy.yml

Lines changed: 0 additions & 86 deletions
This file was deleted.

.github/workflows/ci-backend-rbspy.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/ci-cli.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)