-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
0b1c05b
commit b9c98e6
Showing
63 changed files
with
1,467 additions
and
1,500 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,79 +1,41 @@ | ||
variables: | ||
SampleName: SSSRSample | ||
SolutionDirDX12: sample\build\DX12 | ||
SolutionDX12: SSSRSample_DX12.sln | ||
SampleName: SssrSample | ||
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 sample release: | ||
build_dx12: | ||
tags: | ||
- windows | ||
- amd64 | ||
stage: deploy | ||
except: | ||
- tags | ||
stage: build | ||
script: | ||
- echo Building "%SolutionDX12%" | ||
- cd %SolutionDirDX12% | ||
- 'msbuild.exe "%SolutionDX12%" /p:Configuration=Release /p:Platform=x64' | ||
- cd ../../.. | ||
- mkdir %SampleName% | ||
- copy sample\src\Common bin | ||
- 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%_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%/README.md" | ||
- "%SampleName%/screenshot.png" | ||
- "%SampleName%_DX12.bat" | ||
|
||
build d3d12 sample release tagged: | ||
- sample/bin/ | ||
|
||
package_sample: | ||
tags: | ||
- windows | ||
- amd64 | ||
stage: deploy | ||
only: | ||
- tags | ||
dependencies: | ||
- build_dx12 | ||
script: | ||
- echo Building "%SolutionDX12%" | ||
- cd %SolutionDirDX12% | ||
- 'msbuild.exe "%SolutionDX12%" /p:Configuration=Release /p:Platform=x64' | ||
- cd ../../.. | ||
- mkdir %SampleName% | ||
- copy sample\src\Common bin | ||
- 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%_DX12.bat | ||
- echo "Packaging build" | ||
- 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" | ||
- "%SampleName%_DX12.bat" | ||
|
||
- NOTICES.txt | ||
- sample/README.md | ||
- sample/screenshot.png | ||
- sample/bin/ | ||
- sample/media/ | ||
- docs/ | ||
- "%SampleName%_DX12.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
Oops, something went wrong.