From b2c704862a0a8621d1185fca5043a3f9f8a32ff9 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Sun, 2 Sep 2018 21:57:06 -0400 Subject: [PATCH] travis: deploy OSX Metal build --- .travis.yml | 6 ++++++ travis-deploy-key.enc | Bin 0 -> 1680 bytes travis_metal_deploy.sh | 23 +++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 travis-deploy-key.enc create mode 100644 travis_metal_deploy.sh diff --git a/.travis.yml b/.travis.yml index 898ad6c5f9..167f2f1b94 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/travis-deploy-key.enc b/travis-deploy-key.enc new file mode 100644 index 0000000000000000000000000000000000000000..c4866927015bb5a7f442ee8e5a699205e52a819f GIT binary patch literal 1680 zcmV;B25?%bt=3zDWr{L(B0x!&-;ClR?`>9MhPGi{i81^N5A zK7R^8?N?ujd-B59emjBRJ6BnkMVrD73?xAN7Q~wc_6po?wcAN}xzr3Lyx6x*Og+=C zP<&iZp)N6YLF^|)pO8JY7C@b%$~tbe5ZsuiZ~S30KVNSAu^X}<1^VWgq=6Ay!k$no zCI0@SIY{*N@4-G9eApbFaJkyLQLH^<7-d~0*HA1Wu2Il@HgEmzFcF|UqF!_+VE^R5 zuv1K+x*OnqnA=aS*v~Q(5?DXkRUF%1K6LiE8T8Vdem81@Zj05zI?;Y1PG>;-{gbJI z1+>j+YZa|CNx@ib@ZIh3cGy*?F)}6{NimOR$Kv!+)3J3(Q|s~wPyrK+uGpdCkMAf5-N-v))73SGhH&cFfxHQ|gH})On@-(;u~y zo%fbTNg`jM3Z8IVS?$(cj1w=Q!z%3U{uQ)ybW&_QPrTDUIRlN ztQ`#!-tru~ys!-zB3lbEU~yEWv6-o=MfoD? zb4cM?MQV27v#K~`MA1|lf7-Pa`ZK(gPk9P`GnaQUK}xi`8yPX?XfTr}JETKfqx`cR zrIA}kijT>#iYo6w!XEmv9wttMHb@2ff3bM6zcXNpxcXxpV#t zUt-fExg~RGYkrta61S|6-v5NJOe$e-yBXzRg7mRKotcz_GcxV&T^{>DT zLjAiEB2#UIAsS7It1l?>0t z@qLZR6R%C6m5NsT^*!ger7Q3ZMa1_dr*J}|eo152Gdi_~dl)Y>WPAQ(go4oF?9suX z1vmbx&G8_h#LPEq7!yzw+-rNh+A5+tD0E270W)he9|`^}sAx2gk8lOU5RJXrVLYNl zRwOK=tzrVL-c^FV=sUe9`WN1z3!l0QRS|xCu{9N$)bGmV=oApt|6niSdxKi0mBhyc z5np#Tu*E>Y(1H4D#<2#7k@f+VuHBf^2I8zZlIJP6nXDT)(|Hkl%}#RC!nqJ`lRKr` zCoTpBWK(PO+~rMMmzC056b5T(c~zp>qA$RAbCp(m3HimL0;3bvpZVT&-9cEY7JjZ* zep%e|*)p3l_ctpCo=c=vZHa;lr774P_Vq5V3@EY@A`Ker&Q2%M;-a|w&J5(HBC3cV z4L=b1xO6=v7GK=~8`vbU1o>m<-lQ#YUb z!$rD*r2KY9hgOFc-TIEt+oVj#6ml1OaT_0}B2v|xU)c;Il~0eyPB6${lQfYl)e?4T zFbqOY5h@wHFQPjTj#N%ec%j5vFn|cYy?*Q!-EUAU431?mtUT-K5(^Gg^p&&p5EsRu zuhgSdvZDvi7&S+FgwKHNv(}!d(0$+gE>f92{)+k@WyYShRcPOiCRLTOai$TLSjtnY^xF-@V!c`f$X38&~-@fEii%T-n88nUGQ-_ a*qSfoJ!)yu00{}5`P{92EfV>r78xB&$xn#@ literal 0 HcmV?d00001 diff --git a/travis_metal_deploy.sh b/travis_metal_deploy.sh new file mode 100644 index 0000000000..2fb7316123 --- /dev/null +++ b/travis_metal_deploy.sh @@ -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/