Skip to content

Commit 8f48ef1

Browse files
committed
Enable sharing to easily share results online
Only share when running within GitHub Actions environment.
1 parent e860f60 commit 8f48ef1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
desc "run benchmark in current ruby"
22
task :run_benchmark do
3+
ENV['SHARE'] = ENV['GITHUB_ACTIONS'] # only share to http://ips.fastruby.io when running within GitHub Actions env
4+
35
Dir["code/general/*.rb"].each do |benchmark|
46
puts "$ ruby -v #{benchmark}"
57
system("ruby", "-v", "-W0", benchmark)

0 commit comments

Comments
 (0)