Skip to content

Commit a1f0ac8

Browse files
committed
wip: ruby github action
1 parent 3f76ab2 commit a1f0ac8

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Ruby Package
2+
3+
on:
4+
push:
5+
paths:
6+
- 'pyroscope_ffi/ruby/**'
7+
- '.github/workflows/ruby.yml'
8+
pull_request:
9+
paths:
10+
- 'pyroscope_ffi/ruby/**'
11+
- '.github/workflows/ruby.yml'
12+
13+
jobs:
14+
15+
16+
source:
17+
name: source
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: '3.1'
26+
27+
- name: Build source gem
28+
run: rake gem
29+
working-directory: pyroscope_ffi/ruby
30+
31+
- uses: actions/upload-artifact@v2
32+
with:
33+
name: ${{ github.sha }}
34+
path: pyroscope_ffi/ruby/pkg/*.gem

0 commit comments

Comments
 (0)