File tree Expand file tree Collapse file tree 1 file changed +49
-1
lines changed Expand file tree Collapse file tree 1 file changed +49
-1
lines changed Original file line number Diff line number Diff line change 1111 - ' .github/workflows/ruby.yml'
1212
1313jobs :
14-
14+ linux :
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ build-arch :
19+ - x86_64
20+ - aarch64
21+
22+ name : Linux - ${{ matrix.build-arch }}
23+ runs-on : ubuntu-latest
24+
25+ steps :
26+ - uses : actions/checkout@v2
27+
28+ - if : matrix.build-arch == 'aarch64'
29+ uses : docker/setup-qemu-action@v1
30+ with :
31+ platforms : arm64
32+
33+ - uses : ruby/setup-ruby@v1
34+ with :
35+ ruby-version : ' 3.1'
36+
37+ - name : Install bundles
38+ run : bundle
39+ working-directory : pyroscope_ffi/ruby
40+
41+ - name : Build native extensions
42+ run : rake rbspy_install
43+ working-directory : pyroscope_ffi/ruby
44+
45+ - name : Build native extensions
46+ run : rake thread_id_install
47+ working-directory : pyroscope_ffi/ruby
48+
49+ - if : matrix.build-arch == 'x86_64'
50+ name : Build linux gem
51+ run : rake x86_64_linux:gem
52+ working-directory : pyroscope_ffi/ruby
53+
54+ - if : matrix.build-arch == 'aarch64'
55+ name : Build linux gem
56+ run : rake aarch64_linux:gem
57+ working-directory : pyroscope_ffi/ruby
58+
59+ - uses : actions/upload-artifact@v2
60+ with :
61+ name : ${{ github.sha }}
62+ path : pyroscope_ffi/ruby/pkg/*.gem
1563
1664 source :
1765 name : source
You can’t perform that action at this time.
0 commit comments