-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
734 additions
and
609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,57 @@ | ||
variables: | ||
SampleName: SPDSample | ||
SolutionDirDX12: sample\build\DX12 | ||
SolutionDX12: SPDSample_DX12.sln | ||
SolutionDirVK: sample\build\VK | ||
SolutionVK: SPDSample_VK.sln | ||
GIT_SUBMODULE_STRATEGY: normal | ||
|
||
before_script: | ||
- 'for /f "usebackq delims=" %%i in (`vswhere.exe -version "[15.0,16.0)" -products Microsoft.VisualStudio.Product.BuildTools -property installationPath`) do set MSBUILD_PATH=%%i' | ||
- 'call "%MSBUILD_PATH%\VC\Auxiliary\Build\vcvars64.bat"' | ||
- 'cd sample\build' | ||
- 'call GenerateSolutions.bat -T v141' | ||
- 'cd ..\..' | ||
|
||
stages: | ||
- build | ||
- deploy | ||
|
||
build d3d12 and vulkan sample release: | ||
build_dx12: | ||
tags: | ||
- windows | ||
- amd64 | ||
stage: deploy | ||
except: | ||
- tags | ||
stage: build | ||
script: | ||
- echo Building "%SolutionVK%" | ||
- cd %SolutionDirVK% | ||
- 'msbuild.exe "%SolutionVK%" /p:Configuration=Release /p:Platform=x64' | ||
- cd ../../.. | ||
- echo Building "%SolutionDX12%" | ||
- cd %SolutionDirDX12% | ||
- 'msbuild.exe "%SolutionDX12%" /p:Configuration=Release /p:Platform=x64' | ||
- cd ../../.. | ||
- mkdir %SampleName% | ||
- move sample\bin %SampleName% | ||
- move sample\media %SampleName% | ||
- move sample\README.md %SampleName% | ||
- echo cd .\%SampleName%\bin\ > %SampleName%_VK.bat | ||
- echo start %SampleName%_VK.exe >> %SampleName%_VK.bat | ||
- echo cd .\%SampleName%\bin\ > %SampleName%_DX12.bat | ||
- echo start %SampleName%_DX12.exe >> %SampleName%_DX12.bat | ||
- 'cmake -S sample -B sample/build/DX12 -G "Visual Studio 15 2017" -A x64 -DGFX_API=DX12' | ||
- 'cmake --build sample/build/DX12 --config Release' | ||
artifacts: | ||
name: "%SampleName%-%CI_COMMIT_REF_NAME%-%CI_COMMIT_SHORT_SHA%" | ||
paths: | ||
- "%SampleName%/bin/" | ||
- "%SampleName%/media/" | ||
- "%SampleName%/README.md" | ||
- "%SampleName%_DX12.bat" | ||
- "%SampleName%_VK.bat" | ||
paths: | ||
- sample/bin/ | ||
|
||
build_vk: | ||
tags: | ||
- windows | ||
- amd64 | ||
stage: build | ||
script: | ||
- 'cmake -S sample -B sample/build/VK -G "Visual Studio 15 2017" -A x64 -DGFX_API=VK' | ||
- 'cmake --build sample/build/VK --config Release' | ||
artifacts: | ||
paths: | ||
- sample/bin/ | ||
|
||
build d3d12 and vulkan sample release tagged: | ||
package_sample: | ||
tags: | ||
- windows | ||
- amd64 | ||
stage: deploy | ||
only: | ||
- tags | ||
dependencies: | ||
- build_dx12 | ||
- build_vk | ||
script: | ||
- echo Building "%SolutionVK%" | ||
- cd %SolutionDirVK% | ||
- 'msbuild.exe "%SolutionVK%" /p:Configuration=Release /p:Platform=x64' | ||
- cd ../../.. | ||
- echo Building "%SolutionDX12%" | ||
- cd %SolutionDirDX12% | ||
- 'msbuild.exe "%SolutionDX12%" /p:Configuration=Release /p:Platform=x64' | ||
- cd ../../.. | ||
- mkdir %SampleName% | ||
- move sample\bin %SampleName% | ||
- move sample\media %SampleName% | ||
- move sample\README.md %SampleName% | ||
- move sample\screenshot.png %SampleName% | ||
- move NOTICES.txt %SampleName% | ||
- echo cd .\%SampleName%\bin\ > %SampleName%_VK.bat | ||
- echo start %SampleName%_VK.exe >> %SampleName%_VK.bat | ||
- echo cd .\%SampleName%\bin\ > %SampleName%_DX12.bat | ||
- echo start %SampleName%_DX12.exe >> %SampleName%_DX12.bat | ||
- echo "Packaging build" | ||
- copy %VULKAN_SDK%\Bin\glslc.exe .\sample\bin | ||
- echo cd .\sample\bin\ > %SampleName%_VK.bat | ||
- echo start %SampleName%_VK.exe >> %SampleName%_VK.bat | ||
- echo cd .\sample\bin\ > %SampleName%_DX12.bat | ||
- echo start %SampleName%_DX12.exe >> %SampleName%_DX12.bat | ||
artifacts: | ||
name: "%SampleName%-%CI_COMMIT_TAG%" | ||
name: "%SampleName%-%CI_COMMIT_TAG%-%CI_COMMIT_REF_NAME%-%CI_COMMIT_SHORT_SHA%" | ||
paths: | ||
- "%SampleName%/bin/" | ||
- "%SampleName%/media/" | ||
- "%SampleName%/NOTICES.txt" | ||
- "%SampleName%/README.md" | ||
- "%SampleName%/screenshot.png" | ||
- "NOTICES.txt" | ||
- "sample/bin/" | ||
- "sample/media/" | ||
- "docs/" | ||
- "readme.md" | ||
- "%SampleName%_VK.bat" | ||
- "%SampleName%_DX12.bat" | ||
- "%SampleName%_VK.bat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule cauldron
updated
from 70a8fc to fd91cd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.