-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
70 lines (65 loc) · 2.11 KB
/
.gitlab-ci.yml
File metadata and controls
70 lines (65 loc) · 2.11 KB
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
variables:
FF_USE_FASTZIP: "true"
ARTIFACT_COMPRESSION_LEVEL: "fast"
stages:
- build
- package
build_release:
tags:
- gpu-reshape
stage: build
script:
- 'cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_CONFIGURATION_TYPES:STRING="RelWithDebInfo" -DINSTALL_THIRD_PARTY:BOOL="1" -B "cmake-build-vs2022" -DCMAKE_VS_NUGET_PACKAGE_RESTORE=ON'
- 'cmake -P Build/Utils/CSProjPatch.cmake cmake-build-vs2022'
- 'dotnet restore "cmake-build-vs2022/GPU-Reshape.sln"'
# Workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/18026
# 'cmake --build cmake-build-vs2022 --config RelWithDebInfo --parallel 4 -- /p:CL_MPcount=16'
- '"cmake-build-vs2022/GRS_MSBuild.bat" "cmake-build-vs2022/GPU-Reshape.sln" /p:Configuration=RelWithDebInfo'
artifacts:
name: "GPU-Reshape-Release-$CI_COMMIT_SHORT_SHA"
paths:
- Bin/MSVC/RelWithDebInfo/
build_debug:
tags:
- windows
- amd64
stage: build
when: manual
script:
- 'cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_CONFIGURATION_TYPES:STRING="Debug" -DINSTALL_THIRD_PARTY:BOOL="1" -B "cmake-build-vs2022" -DCMAKE_VS_NUGET_PACKAGE_RESTORE=ON'
- 'cmake -P Build/Utils/CSProjPatch.cmake cmake-build-vs2022'
- 'dotnet restore "cmake-build-vs2022/GPU-Reshape.sln"'
# Workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/18026
# 'cmake --build cmake-build-vs2022 --config Debug --parallel 4 -- /p:CL_MPcount=16'
- '"cmake-build-vs2022/GRS_MSBuild.bat" "cmake-build-vs2022/GPU-Reshape.sln" /p:Configuration=Debug'
artifacts:
name: "GPU-Reshape-Debug-$CI_COMMIT_SHORT_SHA"
paths:
- Bin/MSVC/Debug/
package_release:
tags:
- windows
- amd64
stage: package
dependencies:
- build_release
script:
- '"Build\Scripts\Package.bat" MSVC/RelWithDebInfo'
artifacts:
name: "GPU-Reshape-Release-$CI_COMMIT_SHORT_SHA"
paths:
- Package/MSVC/RelWithDebInfo/
package_debug:
tags:
- windows
- amd64
stage: package
when: manual
dependencies:
- build_debug
script:
- '"Build\Scripts\Package.bat" MSVC/Debug'
artifacts:
name: "GPU-Reshape-Debug-$CI_COMMIT_SHORT_SHA"
paths:
- Package/MSVC/Debug/