forked from GPUOpen-LibrariesAndSDKs/FidelityFX-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
181 lines (168 loc) · 4.18 KB
/
.gitlab-ci.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
variables:
PARALLEL_BUILDS: 4
MAX_LOGICAL_PROCESSORS: 8
CMAKE_BUILD_DRIVER: "--parallel %PARALLEL_BUILDS% -- /p:CL_MPcount=%MAX_LOGICAL_PROCESSORS%"
GIT_SUBMODULE_STRATEGY: normal
FF_USE_FASTZIP: "true"
ARTIFACT_COMPRESSION_LEVEL: "fast"
default:
tags:
- windows
- amd64
stages:
- format-check
- build
- package
format_check:
stage: format-check
needs: []
script:
- echo Coming soon!
build_release_cauldron:
stage: build
needs: []
script:
- 'mkdir build'
- 'cd build'
- 'cmake -A x64 .. -DBUILD_TYPE=CAULDRON'
- 'cmake --build . --config ReleaseDX12 %CMAKE_BUILD_DRIVER%'
- 'cmake --build . --config ReleaseVK %CMAKE_BUILD_DRIVER%'
artifacts:
paths:
- ./bin
build_debug_cauldron:
stage: build
needs: []
script:
- 'mkdir build'
- 'cd build'
- 'cmake -A x64 .. -DBUILD_TYPE=CAULDRON'
- 'cmake --build . --config DebugDX12 %CMAKE_BUILD_DRIVER%'
- 'cmake --build . --config DebugVK %CMAKE_BUILD_DRIVER%'
artifacts:
paths:
- ./bin
build_release_sdk:
stage: build
needs: []
script:
- 'cd sdk/'
- 'mkdir build'
- 'cd build'
- 'cmake -A x64 .. -DFFX_API_CUSTOM=OFF -DFFX_ALL=ON -DFFX_AUTO_COMPILE_SHADERS=1'
- 'cmake --build ./ --config Release %CMAKE_BUILD_DRIVER%'
artifacts:
paths:
- ./sdk/bin
build_debug_sdk:
stage: build
needs: []
script:
- 'cd sdk/'
- 'mkdir build'
- 'cd build'
- 'cmake -A x64 .. -DFFX_API_CUSTOM=OFF -DFFX_ALL=ON -DFFX_AUTO_COMPILE_SHADERS=1'
- 'cmake --build ./ --config Debug %CMAKE_BUILD_DRIVER%'
artifacts:
paths:
- ./sdk/bin
build_release_samples_dx12:
stage: build
needs:
- job: build_release_sdk
script:
- 'mkdir build'
- 'cd build'
- 'cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=CAULDRON'
- 'cmake --build . --config ReleaseDX12 %CMAKE_BUILD_DRIVER%'
- 'cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=NATIVE'
- 'cmake --build . --config ReleaseDX12 %CMAKE_BUILD_DRIVER%'
artifacts:
paths:
- ./bin
build_release_samples_vk:
stage: build
needs:
- job: build_release_sdk
script:
- 'mkdir build'
- 'cd build'
- 'cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=CAULDRON'
- 'cmake --build . --config ReleaseVK %CMAKE_BUILD_DRIVER%'
- 'cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=NATIVE'
- 'cmake --build . --config ReleaseVK %CMAKE_BUILD_DRIVER%'
artifacts:
paths:
- ./bin
build_debug_samples_dx12:
stage: build
needs:
- job: build_debug_sdk
script:
- 'mkdir build'
- 'cd build'
- 'cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=CAULDRON'
- 'cmake --build . --config DebugDX12 %CMAKE_BUILD_DRIVER%'
- 'cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=NATIVE'
- 'cmake --build . --config DebugDX12 %CMAKE_BUILD_DRIVER%'
artifacts:
paths:
- ./bin
build_debug_samples_vk:
stage: build
needs:
- job: build_debug_sdk
script:
- 'mkdir build'
- 'cd build'
- 'cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=CAULDRON'
- 'cmake --build . --config DebugVK %CMAKE_BUILD_DRIVER%'
- 'cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=NATIVE'
- 'cmake --build . --config DebugVK %CMAKE_BUILD_DRIVER%'
artifacts:
paths:
- ./bin
package_release_samples:
stage: package
needs:
- job: build_release_samples_dx12
- job: build_release_samples_vk
script:
- echo "Packaging FidelityFX SDK Samples"
- 'copy %VULKAN_SDK%\Bin\glslc.exe .\bin'
artifacts:
name: "FIDELITYFX-SDK-SAMPLES-%CI_COMMIT_TAG%-%CI_COMMIT_REF_NAME%-%CI_COMMIT_SHORT_SHA%"
paths:
- ./bin
- ./docs
- ./framework
- ./samples
- ./sdk
- ./*.bat
- ./CMakeLists.txt
- ./common.cmake
- ./LICENSE.txt
- ./readme.md
- ./sample.cmake
package_debug_samples:
stage: package
needs:
- job: build_debug_samples_dx12
- job: build_debug_samples_vk
script:
- echo "Packaging FidelityFX SDK Samples"
- 'copy %VULKAN_SDK%\Bin\glslc.exe .\bin'
artifacts:
name: "FIDELITYFX-SDK-SAMPLES-%CI_COMMIT_TAG%-%CI_COMMIT_REF_NAME%-%CI_COMMIT_SHORT_SHA%"
paths:
- ./bin
- ./docs
- ./framework
- ./samples
- ./sdk
- ./*.bat
- ./CMakeLists.txt
- ./common.cmake
- ./LICENSE.txt
- ./readme.md
- ./sample.cmake