mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-12 16:17:29 +05:00
[gitlab-ci] Use CCACHE on Windows
This commit is contained in:
parent
b21dd4d978
commit
32465ddb41
@ -15,10 +15,11 @@ stages:
|
|||||||
before_script:
|
before_script:
|
||||||
- "echo off"
|
- "echo off"
|
||||||
- 'call "%VS2017INSTALLDIR%\VC\Auxiliary\Build\vcvars64"'
|
- 'call "%VS2017INSTALLDIR%\VC\Auxiliary\Build\vcvars64"'
|
||||||
- set CMAKE_GENERATOR=Visual Studio 15 2017 Win64
|
|
||||||
- set CI_DIR=C:\ci\%CI_PIPELINE_ID%
|
- set CI_DIR=C:\ci\%CI_PIPELINE_ID%
|
||||||
|
- set CLCACHE_BASEDIR=C:\ci\%CI_PIPELINE_ID%
|
||||||
- set NETGEN_BUILD_DIR=%CI_DIR%\build
|
- set NETGEN_BUILD_DIR=%CI_DIR%\build
|
||||||
- set INSTALL_DIR=%CI_DIR%\install
|
- set INSTALL_DIR=%CI_DIR%\install
|
||||||
|
- set SRC_DIR=%CI_DIR%\src
|
||||||
- set NETGENDIR=%INSTALL_DIR%\bin
|
- set NETGENDIR=%INSTALL_DIR%\bin
|
||||||
- set PYTHONPATH=%INSTALL_DIR%\lib\site-packages
|
- set PYTHONPATH=%INSTALL_DIR%\lib\site-packages
|
||||||
|
|
||||||
@ -26,17 +27,21 @@ build_win:
|
|||||||
<<: *win
|
<<: *win
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
|
- mkdir %SRC_DIR%
|
||||||
|
- xcopy . %SRC_DIR%\ /O /X /E /H /K /Q
|
||||||
|
- cd %SRC_DIR%
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
- rd /s /q %NETGEN_BUILD_DIR%
|
- rd /s /q %NETGEN_BUILD_DIR%
|
||||||
- mkdir %NETGEN_BUILD_DIR%
|
- mkdir %NETGEN_BUILD_DIR%
|
||||||
- cd %NETGEN_BUILD_DIR%
|
- cd %NETGEN_BUILD_DIR%
|
||||||
- >-
|
- >-
|
||||||
cmake %CI_PROJECT_DIR%
|
cmake %SRC_DIR%
|
||||||
-G"%CMAKE_GENERATOR%"
|
-G Ninja
|
||||||
-DINSTALL_DIR=%INSTALL_DIR%
|
-DCMAKE_INSTALL_PREFIX=%INSTALL_DIR%
|
||||||
-DUSE_OCC=ON
|
-DUSE_OCC=ON
|
||||||
|
-DUSE_CCACHE=ON
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
- cmake --build . --target INSTALL --config Release
|
- cmake --build . --target install --config Release
|
||||||
|
|
||||||
test_win:
|
test_win:
|
||||||
<<: *win
|
<<: *win
|
||||||
|
Loading…
x
Reference in New Issue
Block a user