Skip to content

Commit aae879c

Browse files
committed
wip: Rakefile multi-platform
1 parent c354eb3 commit aae879c

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

pyroscope_ffi/ruby/Rakefile

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,39 @@ end
2525

2626
spec = Bundler.load_gemspec('pyroscope.gemspec')
2727

28-
# add your default gem packing task
29-
Gem::PackageTask.new(spec) do |pkg|
28+
namespace :source do
29+
Gem::PackageTask.new(spec) do |pkg|
30+
end
31+
end
32+
33+
namespace :x86_64_darwin do
34+
spec.platform = 'x86_64-darwin'
35+
spec.files += ['lib/rbspy/rbspy.bundle', 'lib/thread_id/thread_id.bundle']
36+
37+
Gem::PackageTask.new(spec) do |pkg|
38+
end
39+
end
40+
41+
namespace :arm64_darwin do
42+
spec.platform = 'arm64-darwin'
43+
spec.files += ['lib/rbspy/rbspy.bundle', 'lib/thread_id/thread_id.bundle']
44+
45+
Gem::PackageTask.new(spec) do |pkg|
46+
end
47+
end
48+
49+
namespace :x86_64_linux do
50+
spec.platform = 'x86_64-linux'
51+
spec.files += ['lib/rbspy/rbspy.bundle', 'lib/thread_id/thread_id.bundle']
52+
53+
Gem::PackageTask.new(spec) do |pkg|
54+
end
55+
end
56+
57+
namespace :aarch64_linux do
58+
spec.platform = 'aarch64-linux'
59+
spec.files += ['lib/rbspy/rbspy.bundle', 'lib/thread_id/thread_id.bundle']
60+
61+
Gem::PackageTask.new(spec) do |pkg|
62+
end
3063
end

0 commit comments

Comments
 (0)