Skip to content

Commit

Permalink
Add a script to build all gems
Browse files Browse the repository at this point in the history
This makes it easy to build all gems locally by running
`scripts/build-gems`.
  • Loading branch information
stanhu authored and mudge committed Jul 28, 2023
1 parent 5764294 commit dd5a319
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions scripts/build-gems
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

0 comments on commit dd5a319

Please sign in to comment.