travis: add Metal RA build

This commit is contained in:
Brad Parker 2018-09-03 09:06:39 -04:00
parent abb59b79b5
commit 7ec3a485d6
2 changed files with 22 additions and 1 deletions

View File

@ -819,7 +819,11 @@ if [ "${PLATFORM}" == "osx" ] && [ "${RA}" == "YES" ]; then
cd pkg/apple
xcodebuild -project RetroArch.xcodeproj -target RetroArch -configuration Release | tee "$LOGFILE"
if [ "${METAL}" == "1" ]; then
xcodebuild -project RetroArch_Metal.xcodeproj -target RetroArch -configuration Release | tee "$LOGFILE"
else
xcodebuild -project RetroArch.xcodeproj -target RetroArch -configuration Release | tee "$LOGFILE"
fi
RET=$?
buildbot_handle_message "$RET" "$ENTRY_ID" "retroarch" "$jobid" "$LOGFILE"

17
travis/build-retroarch-metal.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
export LOGDATE=`date +%Y-%m-%d`
mkdir -p /tmp/log/${LOGDATE}
export BOT=.
export TMPDIR=/tmp
export TRAVIS=1
export EXIT_ON_ERROR=1
RECIPE=recipes/apple/retroarch-osx-x64
cd ~/libretro-super
rm -fr retroarch
mv ${TRAVIS_BUILD_DIR} retroarch
FORCE=YES SINGLE_CORE=retroarch METAL=1 ./libretro-buildbot-recipe.sh "${RECIPE}"