Skip to content

Commit

Permalink
Travis fix for MacOS (#116)
Browse files Browse the repository at this point in the history
* Travis fix for MacOS

* Deployment

* Deployment

* Only upload on master
  • Loading branch information
SaschaWillems committed Apr 20, 2021
1 parent 39624ac commit 8db3305
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ jobs:
export VERSION=${TARGET_PLATFORM}
cp vulkanCapsViewer.png appdir/usr/share/icons/hicolor/256x256/apps/vulkanCapsViewer.png
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/* -appimage
curl -T Vulkan_Caps_Viewer-X11-x86_64.AppImage ftp://${{ secrets.FTP_USER_NAME }}:${{ secrets.FTP_PASS }}@${{ secrets.FTP_SERVER_NAME }}
- name: Upload
if: github.ref == 'refs/heads/master'
run: curl -T Vulkan_Caps_Viewer-X11-x86_64.AppImage ftp://${{ secrets.FTP_USER_NAME }}:${{ secrets.FTP_PASS }}@${{ secrets.FTP_SERVER_NAME }}

build_ubuntu_wayland:
name: Build Ubuntu Wayland
Expand Down Expand Up @@ -77,7 +79,9 @@ jobs:
export VERSION=${TARGET_PLATFORM}
cp vulkanCapsViewer.png appdir/usr/share/icons/hicolor/256x256/apps/vulkanCapsViewer.png
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/* -appimage
curl -T Vulkan_Caps_Viewer-wayland-x86_64.AppImage ftp://${{ secrets.FTP_USER_NAME }}:${{ secrets.FTP_PASS }}@${{ secrets.FTP_SERVER_NAME }}
- name: Upload
if: github.ref == 'refs/heads/master'
run: curl -T Vulkan_Caps_Viewer-wayland-x86_64.AppImage ftp://${{ secrets.FTP_USER_NAME }}:${{ secrets.FTP_PASS }}@${{ secrets.FTP_SERVER_NAME }}

build_macosx_10:
name: Build macOS 10
Expand All @@ -98,14 +102,16 @@ jobs:
TARGET_PLATFORM: osx
run: |
echo ${TARGET_PLATFORM}
brew cask install apenngrace/vulkan/vulkan-sdk
brew install --cask apenngrace/vulkan/vulkan-sdk
export PATH=$PATH:/usr/local/opt/qt/bin
export CPATH=$CPATH:/usr/local/include/
qmake -config release
make -j$(nproc)
macdeployqt vulkanCapsViewer.app -dmg
cp vulkanCapsviewer.dmg Vulkan_Caps_Viewer-osx-x86_64.dmg
curl -T Vulkan_Caps_Viewer-osx-x86_64.dmg ftp://${{ secrets.FTP_USER_NAME }}:${{ secrets.FTP_PASS }}@${{ secrets.FTP_SERVER_NAME }}
- name: Upload
if: github.ref == 'refs/heads/master'
run: curl -T Vulkan_Caps_Viewer-osx-x86_64.dmg ftp://${{ secrets.FTP_USER_NAME }}:${{ secrets.FTP_PASS }}@${{ secrets.FTP_SERVER_NAME }}

build_windows:
name: Build Windows
Expand All @@ -128,4 +134,6 @@ jobs:
nmake release
windeployqt.exe release --no-opengl-sw --no-angle --no-webkit2 --no-translations --no-system-d3d-compiler
Compress-Archive -Path release\ -DestinationPath Vulkan_Caps_Viewer-windows.zip
curl -T Vulkan_Caps_Viewer-windows.zip ftp://${{ secrets.FTP_USER_NAME }}:${{ secrets.FTP_PASS }}@${{ secrets.FTP_SERVER_NAME }}
- name: Upload
if: github.ref == 'refs/heads/master'
run: curl -T Vulkan_Caps_Viewer-windows.zip ftp://${{ secrets.FTP_USER_NAME }}:${{ secrets.FTP_PASS }}@${{ secrets.FTP_SERVER_NAME }}

0 comments on commit 8db3305

Please sign in to comment.