Skip to content

Commit 26a0540

Browse files
authored
Merge pull request #2193 from SCIInstitute/update-ospray
Update ospray and add to action build
2 parents 3adf6dc + c36208d commit 26a0540

File tree

6 files changed

+134
-6
lines changed

6 files changed

+134
-6
lines changed

.github/workflows/ccpp.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,20 @@ jobs:
7474
working-directory: bin/SCIRun
7575
continue-on-error: true
7676
run: make test
77+
78+
linux-build-gui-ospray:
79+
80+
runs-on: ${{ matrix.os }}
81+
strategy:
82+
matrix:
83+
os: [ubuntu-latest]
84+
85+
steps:
86+
- name: Checkout
87+
uses: actions/checkout@v2
88+
89+
- name: Prepare
90+
run: sudo apt-get update && sudo apt-get install mesa-common-dev libgl1-mesa-dev mesa-utils-extra libglapi-mesa ninja-build qt5-qmake qtbase5-dev libqt5opengl5-dev libqt5svg5-dev xorg-dev libglu1-mesa-dev
91+
92+
- name: Build
93+
run: ./build.sh -DQt5_PATH=$(dpkg -L qtbase5-dev) -DUSER_PYTHON_VERSION="3.6.7" -DWITH_OSPRAY:BOOL=ON

.github/workflows/mac.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,61 @@ jobs:
6161
# files: |
6262
# bin/SCIRun/SCIRun-5.0.beta.*-Darwin.pkg
6363

64+
mac-build-gui-ospray:
65+
66+
runs-on: macOS-latest
67+
68+
steps:
69+
- name: Checkout
70+
uses: actions/checkout@v2
71+
with:
72+
fetch-depth: 0
73+
74+
- name: Install Qt
75+
uses: ouuan/install-qt-action@ouuan
76+
with:
77+
version: 5.14.2
78+
target: desktop
79+
host: mac
80+
install-deps: true
81+
82+
- name: Print out Qt directory
83+
run: echo $Qt5_DIR; echo $Qt5_Dir
84+
85+
- name: Prepare
86+
run: |
87+
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ /usr/local/include/X11
88+
89+
- name: make
90+
run: ./build.sh -DWITH_OSPRAY:BOOL=ON -DUSER_PYTHON_VERSION="3.6.7" -DQt5_PATH="${Qt5_Dir}"
91+
92+
- name: Package
93+
working-directory: bin/SCIRun
94+
run: |
95+
cmake -DBUILD_BUNDLE:BOOL=ON ../../src
96+
make -j3
97+
make package
98+
chmod +x repair_package.sh
99+
./repair_package.sh
100+
101+
- name: Upload installer
102+
uses: actions/upload-artifact@v2
103+
with:
104+
name: SCIRunMacOsprayInstaller
105+
path: bin/SCIRun/SCIRun-5.0.beta.*-Darwin.pkg
106+
107+
# - name: Deploy
108+
# id: deploy
109+
# if: github.ref == 'refs/heads/master'
110+
# uses: marvinpinto/action-automatic-releases@latest
111+
# with:
112+
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
113+
# automatic_release_tag: "dev-mac"
114+
# prerelease: true
115+
# title: "Development Build for Mac"
116+
# files: |
117+
# bin/SCIRun/SCIRun-5.0.beta.*-Darwin.pkg
118+
64119
mac-build-headless:
65120

66121
runs-on: macOS-latest

.github/workflows/windows.yml

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install Qt
4848
uses: ouuan/install-qt-action@ouuan
4949
with:
50-
version: 5.13.1
50+
version: 5.14.2
5151
target: desktop
5252
host: windows
5353
arch: win64_msvc2017_64
@@ -90,15 +90,12 @@ jobs:
9090
- name: Install Qt
9191
uses: ouuan/install-qt-action@ouuan
9292
with:
93-
version: 5.13.1
93+
version: 5.14.2
9494
target: desktop
9595
host: windows
9696
arch: win64_msvc2017_64
9797
install-deps: true
9898

99-
- name: Print out Qt directory
100-
run: echo $Env:Qt5_Dir
101-
10299
- name: Configure
103100
working-directory: bin
104101
run: |
@@ -130,3 +127,54 @@ jobs:
130127
# title: "Development Build for Windows"
131128
# files: |
132129
# bin/SCIRun/SCIRun-5.0.beta.*-win64.exe
130+
131+
windows-build-gui-python-ospray:
132+
runs-on: windows-latest
133+
134+
steps:
135+
136+
- name: Checkout
137+
uses: actions/checkout@v2
138+
with:
139+
fetch-depth: 0
140+
141+
- name: Install Qt
142+
uses: ouuan/install-qt-action@ouuan
143+
with:
144+
version: 5.14.2
145+
target: desktop
146+
host: windows
147+
arch: win64_msvc2017_64
148+
install-deps: true
149+
150+
- name: Configure
151+
working-directory: bin
152+
run: |
153+
cmake ..\Superbuild -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 16 2019" -Ax64 -DQt5_PATH:PATH="$env:Qt5_Dir" -DWITH_OSPRAY:BOOL=ON
154+
155+
- name: Compile
156+
working-directory: bin
157+
shell: cmd
158+
run: cmake --build . --config Release -j 3
159+
160+
- name: Package
161+
working-directory: bin/SCIRun
162+
shell: cmd
163+
run: cmake --build . --config Release --target package
164+
165+
- name: Upload installer
166+
uses: actions/upload-artifact@v2
167+
with:
168+
name: SCIRunWindowsOsprayInstaller
169+
path: bin/SCIRun/SCIRun-5.0.beta.*-win64.exe
170+
171+
# - name: Deploy
172+
# if: github.ref == 'refs/heads/master'
173+
# uses: marvinpinto/action-automatic-releases@latest
174+
# with:
175+
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
176+
# automatic_release_tag: "dev-windows"
177+
# prerelease: true
178+
# title: "Development Build for Windows"
179+
# files: |
180+
# bin/SCIRun/SCIRun-5.0.beta.*-win64.exe

Superbuild/OsprayExternal.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# DEALINGS IN THE SOFTWARE.
2626

2727
SET_PROPERTY(DIRECTORY PROPERTY "EP_BASE" ${ep_base})
28-
SET(ospray_GIT_TAG "origin/scirun-build")
28+
SET(ospray_GIT_TAG "origin/scirun-build-2.4")
2929

3030
# If CMake ever allows overriding the checkout command or adding flags,
3131
# git checkout -q will silence message about detached head (harmless).

src/Externals/spire/es-render/comp/CommonUniforms.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
*/
2727

2828

29+
#ifdef __APPLE__
30+
#define GL_SILENCE_DEPRECATION
31+
#endif
32+
2933
#include <gl-shaders/GLShader.hpp>
3034

3135
#include <es-general/util/Math.hpp>

src/Externals/spire/es-render/comp/MatUniform.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
*/
2727

2828

29+
#ifdef __APPLE__
30+
#define GL_SILENCE_DEPRECATION
31+
#endif
32+
2933
#include <gl-shaders/GLShader.hpp>
3034
#include <glm/gtc/type_ptr.hpp> // glm::value_ptr
3135

0 commit comments

Comments
 (0)