1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/bin/bash
set -eux
echo "::group::Prepare build directory"
rm -rf rcairo.build
cp -a /rcairo/ rcairo.build
pushd rcairo.build
echo "::endgroup::"
echo "::group::Install dependencies"
bundle config set --local path vendor/bundle
# --jobs=1 is needed to avoid parallel native package installations.
RCAIRO_SOURCE_DIR=$PWD MAKEFLAGS="-j$(nproc)" bundle install --jobs=1
echo "::endgroup::"
pushd ext/cairo
echo "::group::Configure"
bundle exec extconf.rb --enable-debug-build
echo "::endgroup::"
echo "::group::Build"
bundle exec make -j$(nproc)
echo "::endgroup::"
popd
echo "::group::Test"
bundle exec test/run-test.rb "$@"
echo "::endgroup::"
|