forked from RenderKit/ospray
-
Notifications
You must be signed in to change notification settings - Fork 0
206 lines (185 loc) · 7.26 KB
/
release.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
## Copyright 2009 Intel Corporation
## SPDX-License-Identifier: Apache-2.0
name: Release
on:
push:
branches:
- devel
- '**release**'
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
### DOC JOBS ###
pdf:
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker.yml@main
with:
image: ospray/docker-images:docu
submodules: true
cmd: |
cd doc
make pdf
make checklinks
artifact-out: pdf
artifact-path: readme.pdf
### BUILD JOBS ###
release-linux:
needs: pdf
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker.yml@main
with:
force-delete: true # guarantees .gitattributes are respected in working dir
image: rockylinux:8.7
cmd: |
module load cmake/3.15.2
module load intel/2023.0
module load mpi/mpich-x86_64
export CC=icx
export CXX=icpx
export CXXFLAGS="-fhonor-infinities -fhonor-nans"
export CFLAGS=$CXXFLAGS
export LDFLAGS="-static-intel"
scripts/release/linux.sh
artifact-in: pdf
artifact-out: release-linux
artifact-path: build_release/*.gz
release-osx-clang:
needs: pdf
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/macos.yml@main
with:
force-delete: true # guarantees .gitattributes are respected in working dir
runs-on: '[ "macOS", "sign", "x86_64" ]'
cmd: |
export CC=clang
export CXX=clang++
scripts/release/macosx.sh
$SIGN_FILE_MAC -o runtime -e scripts/release/ospray.entitlements build_release/ospray-*pkg
scripts/release/macosx_notarization.sh build_release/ospray-*.pkg
artifact-in: pdf
artifact-out: release-osx-clang
artifact-path: "build_release/*.zip build_release/*.pkg"
release-windows:
needs: pdf
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/windows.yml@main
with:
force-delete: true # guarantees .gitattributes are respected in working dir
runs-on: '["Windows", "build", "mpi"]'
cmd: |
scripts\release\win.ps1 "Visual Studio 15 2017 Win64"
& $env:SIGN_FILE_WINDOWS ospray*.msi
artifact-in: pdf
artifact-out: release-windows
artifact-path: "build_release/ospray*.zip build_release/ospray*.msi"
### SCAN JOBS ###
static-analysis:
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/static_analysis.yml@main
with:
project: ospray
prebuild: |
module load cmake
module load intel/2021.2
echo "Configure dependencies"
cmake -L -S scripts/superbuild -B build_deps -DBUILD_DEPENDENCIES_ONLY=ON -DBUILD_EMBREE_FROM_SOURCE=ON -DBUILD_OIDN=ON -DBUILD_OIDN_FROM_SOURCE=ON -DBUILD_OSPRAY_MODULE_MPI=ON -DINSTALL_IN_SEPARATE_DIRECTORIES=OFF -DBUILD_ISA_AVX512=OFF
echo "Build dependencies"
cmake --build build_deps
INSTALL_DIR=$(pwd)/build_deps/install
export CMAKE_PREFIX_PATH=${INSTALL_DIR}
echo "Configure OSPRay"
cmake -L -S . -B build -DISPC_EXECUTABLE=$INSTALL_DIR/bin/ispc -DTBB_ROOT=$INSTALL_DIR -DOSPRAY_MODULE_DENOISER=ON -DOSPRAY_MODULE_BILINEAR_PATCH=ON -DOSPRAY_MODULE_MPI=ON
echo "Done: Configure OSPRay"
build: cmake --build build
binary-analysis:
needs:
- release-linux
- release-osx-clang
- release-windows
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/binary_analysis.yml@main
with:
project: ospray
artifact-in-linux: release-linux
artifact-in-macos: release-osx-clang
artifact-in-windows: release-windows
path: build_release/ospray-*
antivirus-scan:
needs:
- release-linux
- release-osx-clang
- release-windows
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/antivirus_scan.yml@main
with:
project: ospray
artifact-in-linux: release-linux
artifact-in-macos: release-osx-clang
artifact-in-windows: release-windows
path: build_release/ospray-*
### TEST JOBS ###
test-release-linux:
needs: release-linux
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker.yml@main
with:
image: rockylinux:8.7
cmd: |
module load cmake/3.15.2
module load mpi/mpich-x86_64
tar -xzf build_release/*.gz
export PATH=$GITHUB_WORKSPACE/$(ls -d1 ./ospray-*/bin):$PATH
scripts/tests/run_tests.sh $GITHUB_WORKSPACE AVX512SKX TEST_MPI
artifact-in: release-linux
test-release-osx:
needs: release-osx-clang
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/macos.yml@main
with:
runs-on: '[ "macOS", "x86_64", "build", "avx2" ]'
cmd: |
unzip build_release/*.zip
export PATH=$GITHUB_WORKSPACE/$(ls -d1 ./ospray-*/bin):$PATH
scripts/tests/run_tests.sh $GITHUB_WORKSPACE AVX2
artifact-in: release-osx-clang
# TODO
# test-release-osx-avx512:
# needs: release-osx-clang
# uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/macos.yml@main
# with:
# runs-on: '[ "macOS", "x86_64", "build" ]'
# cmd: |
# unzip build_release/*.zip
# export PATH=$GITHUB_WORKSPACE/$(ls -d1 ./ospray-*/bin):$PATH
# scripts/tests/run_tests.sh $GITHUB_WORKSPACE AVX512SKX
# artifact-in: release-osx-clang
test-release-osx-signing:
needs: release-osx-clang
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/macos.yml@main
with:
runs-on: '[ "macOS", "sign", "x86_64" ]'
cmd: |
unzip build_release/*.zip
$SIGN_FILE_MAC -t ./ospray-*/bin/* ./ospray-*/lib/*.dylib ./build_release/*.pkg
artifact-in: release-osx-clang
test-release-windows-zip:
needs: release-windows
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/windows.yml@main
with:
runs-on: '["Windows", "avx512", "mpi"]'
cmd: |
Expand-Archive build_release/*.zip -DestinationPath .
$env:Path += ";" + (Get-ChildItem ospray-*\bin | Select-Object -Expand FullName)
scripts\tests\run_tests.ps1 $env:GITHUB_WORKSPACE AVX512SKX TEST_MPI
& $env:SIGN_FILE_WINDOWS -t (Get-ChildItem ospray-*\bin\* | Select-Object -Expand FullName)
artifact-in: release-windows
test-release-windows-msi:
needs: release-windows
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/windows.yml@main
with:
runs-on: '["Windows", "avx512", "mpi"]'
cmd: |
msiexec.exe /a (Get-ChildItem build_release/*.msi | Select-Object -Expand FullName) /qn TARGETDIR=$env:GITHUB_WORKSPACE
$env:Path += ";$env:GITHUB_WORKSPACE\Intel\OSPRay v2\bin"
scripts\tests\run_tests.ps1 $env:GITHUB_WORKSPACE AVX512SKX TEST_MPI
& $env:SIGN_FILE_WINDOWS -t $env:GITHUB_WORKSPACE\build_release\*.msi (Get-ChildItem "$env:GITHUB_WORKSPACE\Intel\OSPRay v2\bin\*" | Select-Object -Expand FullName)
artifact-in: release-windows