Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Dependencies
Cpp
mirrage
Commits
97b359df
Commit
97b359df
authored
Feb 07, 2019
by
Lotrado
Browse files
Added optional windows CI tasks.
Windows CI tasks are enabled by defining the project variable WINDOWS_CI.
parent
348ac7cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
97b359df
...
...
@@ -14,6 +14,11 @@ variables:
key
:
${CI_COMMIT_REF_SLUG}-${CI_JOB_NAME}
paths
:
*cache-paths
.windows-cache-spec
:
&windows-cache-spec
cache
:
paths
:
*cache-paths
key
:
"
%CI_COMMIT_REF_SLUG%-%CI_JOB_NAME%-%CI_RUNNER_ID%"
.artifact-spec
:
&artifact-spec
artifacts
:
paths
:
...
...
@@ -26,7 +31,7 @@ variables:
-
cmake -E make_directory build
-
cd build
-
cmake -E remove_directory src
-
cmake -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=../../mirrage -DCMAKE_BUILD_TYPE=Release -DMIRRAGE_EXPORT_EXECUTABLE=ON ..
-
cmake -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=../../mirrage -DCMAKE_BUILD_TYPE=Release
-DMIRRAGE_ENABLE_COTIRE=OFF
-DMIRRAGE_EXPORT_EXECUTABLE=ON ..
-
cmake --build . --target src/install
-
cmake --build . --target test
...
...
@@ -61,4 +66,33 @@ build-scanbuild:
expire_in
:
1 week
when
:
always
build-mingw
:
variables
:
CC
:
"
gcc"
CXX
:
"
g++"
tags
:
-
windows
only
:
variables
:
-
$WINDOWS_CI
<<
:
*build-ninja
<<
:
*windows-cache-spec
<<
:
*artifact-spec
build-msvc
:
stage
:
build
script
:
-
cmake -E make_directory build
-
cd build
-
cmake -E remove_directory src
-
cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_INSTALL_PREFIX:PATH=../../mirrage -DMIRRAGE_EXPORT_EXECUTABLE=ON -DMIRRAGE_ENABLE_BACKWARD=OFF ..
-
cmake --build . --config Release -- /m
-
cmake --build . --config Release --target src/install
-
cmake --build . --config Release --target test
tags
:
-
windows
only
:
variables
:
-
$WINDOWS_CI
<<
:
*windows-cache-spec
<<
:
*artifact-spec
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment