-
Notifications
You must be signed in to change notification settings - Fork 17
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
66 changed files
with
6,465 additions
and
73,565 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
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,71 +1,59 @@ | ||
variables: | ||
SampleName: FFX_CACAO_Sample | ||
SolutionDirDX12: sample\build\DX12 | ||
GIT_SUBMODULE_STRATEGY: normal | ||
|
||
before_script: | ||
- 'for /f "usebackq delims=" %%i in (`vswhere.exe -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 sample release: | ||
build_dx12: | ||
tags: | ||
- windows | ||
- amd64 | ||
stage: deploy | ||
except: | ||
- tags | ||
stage: build | ||
script: | ||
- echo Building "%SampleName%_DX12.sln" | ||
- cd %SolutionDirDX12% | ||
- 'msbuild.exe "%SampleName%_DX12.sln" /p:Configuration=Release /p:Platform=x64' | ||
- cd ../../.. | ||
- mkdir %SampleName% | ||
- move sample/bin %SampleName% | ||
- move sample/media %SampleName% | ||
- move NOTICES.txt %SampleName% | ||
- 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%/NOTICES.txt" | ||
- "%SampleName%_DX12.bat" | ||
- "docs/" | ||
- "readme.md" | ||
- 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 sample release tagged: | ||
package_sample: | ||
tags: | ||
- windows | ||
- amd64 | ||
stage: deploy | ||
only: | ||
- tags | ||
dependencies: | ||
- build_dx12 | ||
- build_vk | ||
script: | ||
- echo Building "%SampleName%_DX12.sln" | ||
- cd %SolutionDirDX12% | ||
- 'msbuild.exe "%SampleName%_DX12.sln" /p:Configuration=Release /p:Platform=x64' | ||
- cd ../../.. | ||
- mkdir %SampleName% | ||
- move sample/bin %SampleName% | ||
- move sample/media %SampleName% | ||
- move NOTICES.txt %SampleName% | ||
- echo cd .\%SampleName%\bin\ > %SampleName%_DX12.bat | ||
- echo "Packaging build" | ||
- copy %VULKAN_SDK%\Bin\glslc.exe .\sample\bin | ||
- echo cd .\sample\bin\ > %SampleName%_DX12.bat | ||
- echo start %SampleName%_DX12.exe >> %SampleName%_DX12.bat | ||
- echo cd .\sample\bin\ > %SampleName%_VK.bat | ||
- echo start %SampleName%_VK.exe >> %SampleName%_VK.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" | ||
- NOTICES.txt | ||
- sample/README.md | ||
- sample/screenshot.png | ||
- sample/bin/ | ||
- sample/media/ | ||
- docs/ | ||
- "%SampleName%_DX12.bat" | ||
- "docs/" | ||
- "readme.md" | ||
- "%SampleName%_VK.bat" | ||
|
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.