-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes it easy to build all gems locally by running `scripts/build-gems`.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#! /usr/bin/env bash | ||
# | ||
# script to build gems for all relevant platforms | ||
# | ||
set -o errexit | ||
set -o nounset | ||
set -x | ||
|
||
rm -rf tmp pkg gems | ||
mkdir -p gems | ||
|
||
# prelude: let's check that things work | ||
bundle update | ||
|
||
bundle exec rake clean clobber | ||
bundle exec rake compile | ||
bundle exec rake spec | ||
|
||
# MRI et al (standard gem) | ||
bundle exec rake clean clobber | ||
bundle exec rake gem | ||
cp -v pkg/re2*.gem gems | ||
|
||
# precompiled native gems ("fat binary") | ||
bundle exec rake gem:native | ||
cp -v pkg/re2*.gem gems | ||
|
||
pushd gems | ||
ls *.gem | sort | xargs sha256sum | ||
popd |