Compare commits

..

2 commits

Author SHA1 Message Date
f
404c4af5b4 don't pass flags from other gems to the next
Some checks failed
continuous-integration/drone the build failed
2021-10-01 10:37:02 -03:00
f
3fb4a1b7d5 gem compiler can receive extra flags 2021-10-01 10:36:53 -03:00
2 changed files with 4 additions and 1 deletions

View file

@ -13,6 +13,8 @@ find build/ -type f |
while read BUILD BUILT GEM_NAME GEM_VERSION; do
test -f "${BUILT}" && continue
unset EXTRA_PKGS EXTRA_GEMS GEM_COMPILER_FLAGS
source "${BUILD}"
HTTP_BASIC_USER="${HTTP_BASIC_USER}" \
@ -23,6 +25,7 @@ find build/ -type f |
GEM_VERSION="${GEM_VERSION}" \
EXTRA_PKGS="${EXTRA_PKGS}" \
EXTRA_GEMS="${EXTRA_GEMS}" \
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
/usr/local/bin/bootstrap
dirname "${BUILT}" | xargs mkdir -p

View file

@ -13,5 +13,5 @@ cd cache/
gem fetch --source=https://gems.${SUTTY} --platform=ruby --version ${GEM_VERSION} ${GEM_NAME}
cd ../gems/
gem compile -V --prune --strip "strip --strip-unneeded" "../cache/${GEM_NAME}-${GEM_VERSION}.gem"
gem compile -V --prune --strip "strip --strip-unneeded" ${GEM_COMPILER_FLAGS} "../cache/${GEM_NAME}-${GEM_VERSION}.gem"
gem inabox -o "${GEM_NAME}-${GEM_VERSION}-${PLATFORM}.gem" --host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@gems.${SUTTY}