travis: deploy OSX Metal build

This commit is contained in:
Brad Parker 2018-09-02 21:57:06 -04:00
parent c57e259fa7
commit b2c704862a
3 changed files with 29 additions and 0 deletions

View File

@ -38,6 +38,12 @@ matrix:
osx_image: xcode9.3
script:
- xcodebuild -target RetroArch -configuration Release -project pkg/apple/RetroArch_Metal.xcodeproj
deploy:
skip_cleanup: true
provider: script
script: bash travis_metal_deploy.sh
on:
branch: master
script:
- ./configure

BIN
travis-deploy-key.enc Normal file

Binary file not shown.

23
travis_metal_deploy.sh Normal file
View File

@ -0,0 +1,23 @@
#!/bin/bash
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "Decrypting SSH key..."
openssl aes-256-cbc -K $encrypted_e9bb4da59666_key -iv $encrypted_e9bb4da59666_iv -in travis-deploy-key.enc -out ~/.ssh/id_rsa -d
chmod 600 ~/.ssh/id_rsa
echo "Creating DMG image..."
cd ${TRAVIS_BUILD_DIR}/pkg/apple/build/Release
FILENAME=$(date +%F)_RetroArch_Metal.dmg
hdiutil create -volname RetroArch -srcfolder ./ -ov -format UDZO ${FILENAME}
echo "Uploading to server..."
rsync -avhP -e 'ssh -p 12346 -o StrictHostKeyChecking=no' ${FILENAME} travis@bot.libretro.com:~/nightly/apple/osx/x86_64/