2022-01-26 06:36:12 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-01-26 07:58:20 +00:00
|
|
|
|
|
|
|
|
# Set environment variables for the build
|
|
|
|
|
set -o allexport; source $RUNNER_TEMP/build.env; set +o allexport;
|
2022-01-26 07:35:13 +00:00
|
|
|
printenv
|
2022-01-26 06:36:12 +00:00
|
|
|
#
|
|
|
|
|
# Run steps
|
|
|
|
|
#
|
2022-01-26 07:58:20 +00:00
|
|
|
source $SCRIPT_DIRECTORY/steps/setup.sh
|
|
|
|
|
source $SCRIPT_DIRECTORY/platforms/mac/steps/activate.sh
|
|
|
|
|
source $SCRIPT_DIRECTORY/platforms/mac/steps/build.sh
|
|
|
|
|
source $SCRIPT_DIRECTORY/platforms/mac/steps/return_license.sh
|
2022-01-26 06:36:12 +00:00
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Instructions for debugging
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
if [[ $BUILD_EXIT_CODE -gt 0 ]]; then
|
|
|
|
|
echo ""
|
|
|
|
|
echo "###########################"
|
|
|
|
|
echo "# Failure #"
|
|
|
|
|
echo "###########################"
|
|
|
|
|
echo ""
|
|
|
|
|
echo "Please note that the exit code is not very descriptive."
|
|
|
|
|
echo "Most likely it will not help you solve the issue."
|
|
|
|
|
echo ""
|
|
|
|
|
echo "To find the reason for failure: please search for errors in the log above."
|
|
|
|
|
echo ""
|
|
|
|
|
fi;
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Exit with code from the build step.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
exit $BUILD_EXIT_CODE
|