-
Notifications
You must be signed in to change notification settings - Fork 67
180 lines (154 loc) · 5.74 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
name: Build Project
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_ubuntu_x11:
name: Build Ubuntu X11
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: jurplel/install-qt-action@v3
with:
version: 5.12.9
host: linux
- name: Install Vulkan SDK
run: |
sudo apt update
sudo apt install libvulkan-dev
- name: Build
env:
TARGET_PLATFORM: X11
run: |
echo ${TARGET_PLATFORM}
PATH="/opt/qt512/bin:$PATH"
CXX="clang++"
qmake DEFINES+=X11 CONFIG+=release PREFIX=/usr
make INSTALL_ROOT=appdir install ; find appdir/
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
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
- 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
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: jurplel/install-qt-action@v3
with:
version: 5.12.9
host: linux
- name: Install Vulkan SDK
run: |
sudo apt update
sudo apt install libvulkan-dev libwayland-dev
- name: Build
env:
TARGET_PLATFORM: wayland
run: |
echo ${TARGET_PLATFORM}
PATH="/opt/qt512/bin:$PATH"
CXX="clang++"
qmake DEFINES+=WAYLAND CONFIG+=release PREFIX=/usr
make INSTALL_ROOT=appdir install ; find appdir/
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
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 -exclude-libs=libwayland-client.so
- 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:
name: Build macOS
runs-on: macos-12
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: jurplel/install-qt-action@v3
with:
version: 5.12.9
host: mac
- name: Prepare Vulkan SDK
uses: edvn0/[email protected]
with:
vulkan-query-version: latest
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
- name: Build
env:
TARGET_PLATFORM: osx
run: |
echo ${TARGET_PLATFORM}
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
- 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 (64 bit)
runs-on: windows-latest
steps:
- uses: ilammy/msvc-dev-cmd@v1
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: jurplel/install-qt-action@v3
- name: Build
env:
TARGET_PLATFORM: windows
run: |
qmake vulkanCapsViewer.pro
nmake release
windeployqt.exe release --no-opengl-sw --no-angle --no-webkit2 --no-translations --no-system-d3d-compiler
Remove-Item release\*.obj
Remove-Item release\*.res
Compress-Archive -Path release\ -DestinationPath Vulkan_Caps_Viewer-windows.zip
- 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 }}
build_windows_x86:
name: Build Windows (32 bit)
runs-on: windows-latest
steps:
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86
- uses: jurplel/install-qt-action@v3
with:
setup-python: 'false'
version: '5.12.9'
arch: 'win32_msvc2017'
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Build
env:
TARGET_PLATFORM: windows
run: |
qmake vulkanCapsViewer.pro
nmake release
windeployqt.exe release --no-opengl-sw --no-angle --no-webkit2 --no-translations --no-system-d3d-compiler
Remove-Item release\*.obj
Remove-Item release\*.res
Compress-Archive -Path release\ -DestinationPath Vulkan_Caps_Viewer-windows_x86.zip
- name: Upload
if: github.ref == 'refs/heads/master'
run: curl -T Vulkan_Caps_Viewer-windows_x86.zip ftp://${{ secrets.FTP_USER_NAME }}:${{ secrets.FTP_PASS }}@${{ secrets.FTP_SERVER_NAME }}