feat: support cmake flags
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-07-18 15:20:01 -03:00
parent b9cf519cbe
commit fc6ae9f931
2 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,9 @@
test -n "${EXTRA_PKGS}" && apk add --no-cache ${EXTRA_PKGS} test -n "${EXTRA_PKGS}" && apk add --no-cache ${EXTRA_PKGS}
test -n "${EXTRA_GEMS}" && gem install --no-user-install --no-document ${EXTRA_GEMS} test -n "${EXTRA_GEMS}" && gem install --no-user-install --no-document ${EXTRA_GEMS}
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" su-exec builder /usr/local/bin/gem-compiler GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
CMAKE_FLAGS="${CMAKE_FLAGS}" \
su-exec builder /usr/local/bin/gem-compiler
exit_status=$? exit_status=$?

View file

@ -28,7 +28,7 @@ find build/ -type f | grep -v /.keep | nl |
continue continue
fi fi
unset EXTRA_PKGS EXTRA_GEMS GEM_COMPILER_FLAGS unset EXTRA_PKGS EXTRA_GEMS GEM_COMPILER_FLAGS CMAKE_FLAGS
source "${BUILD}" source "${BUILD}"
@ -45,6 +45,7 @@ find build/ -type f | grep -v /.keep | nl |
EXTRA_PKGS="${EXTRA_PKGS}" \ EXTRA_PKGS="${EXTRA_PKGS}" \
EXTRA_GEMS="${EXTRA_GEMS}" \ EXTRA_GEMS="${EXTRA_GEMS}" \
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \ GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
CMAKE_FLAGS="${CMAKE_FLAGS}" \
/usr/local/bin/bootstrap 2>&1 | tee -a build_log /usr/local/bin/bootstrap 2>&1 | tee -a build_log
status=$? status=$?