This website requires JavaScript.
Explore
Help
Sign in
mirrors
/
ruby-build
Watch
1
Star
0
Fork
You've already forked ruby-build
0
mirror of
https://github.com/rbenv/ruby-build.git
synced
2026-05-15 08:56:52 -04:00
Code
Issues
Releases
Packages
Wiki
Activity
v20230608
ruby-build
/
script
/
test
4 lines
48 B
Text
Raw
Permalink
Normal View
History
Unescape
Escape
Update ruby-build download mirror in GitHub Actions
2021-07-15 20:57:14 +02:00
#!/bin/bash
Keep mirror up-to-date using Travis CI When new Ruby definitions get added, our current CloudFront mirror may get out of date. This adds a task to the CI process that detects added/changed package URLs and uploads them to our S3 bucket. Fixes #392, references #395
2013-10-24 16:49:15 +02:00
set -e
macOS: Use GMP from homebrew MRI's BigInt use GMP under the hood if available, and if not fallbacks to an homemade implementation with much worse performance. Without GMP: ``` >> Benchmark.realtime { Integer('1' * (10 ** 7)) } => 13.80743500002427 ``` With GMP ``` >> Benchmark.realtime { Integer('1' * (10 ** 7)) } => 0.4098639999865554 ``` macOS not being a common production platform, it's not a huge deal but it would still preferable to compile with `gmp.h` if present. I'd also suggest to print a warning if compiling on macOS and gmp isn't installed, but I don't know if it's desirable. NB: `--with-gmp-dir` was only added recently, so this will only apply to MRI >= 3.2, as well as rubies on which this flag was backported.
2022-09-13 10:17:41 +02:00
bats ${CI:+--tap} test "$@"
Reference in a new issue
Copy permalink