-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
39 lines (36 loc) · 787 Bytes
/
.gitlab-ci.yml
File metadata and controls
39 lines (36 loc) · 787 Bytes
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
variables:
SampleName: DirectStorageSample
CMakeConfig: -G "Visual Studio 16 2019" -A x64
GIT_SUBMODULE_STRATEGY: normal
stages:
- build
- deploy
build_dx12:
tags:
- windows
- amd64
stage: build
artifacts:
paths:
- bin/
script:
- 'cmake -S . -B build/DX12 -DGFX_API=DX12 %CMakeConfig%'
- 'cmake --build build/DX12 --config Release'
package_sample:
tags:
- windows
- amd64
stage: deploy
dependencies:
- build_dx12
script:
- echo cd .\bin\ > %SampleName%_DX12.bat
- echo start %SampleName%_DX12.exe >> %SampleName%_DX12.bat
artifacts:
name: "$SampleName-$CI_COMMIT_TAG-$CI_COMMIT_SHORT_SHA"
paths:
- "bin/"
- "license.txt"
- "media/cauldron-media/"
- "$SampleName_DX12.bat"
- "readme.md"