Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Merge requests
!1196
CI restore Win
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
CI restore Win
ciw
into
main
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Wuttke, Joachim
requested to merge
ciw
into
main
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
8e64c026
Show latest version
1 file
+
46
−
46
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
8e64c026
CI restore Win
· 8e64c026
Wuttke, Joachim
authored
2 years ago
.gitlab-ci.yml
+
46
−
46
Options
@@ -63,52 +63,52 @@ mac12_2:
# go to the root Git directory, and run:
# C:\GitLab-Runner\gitlab-runner.exe exec shell --shell pwsh --builds-dir <gitlab build-dir> <job-name>
#
windows:
#
tags:
#
- Windows
#
stage: build
#
cache:
#
# key: build-cache
#
# paths:
#
# - build/
#
script:
#
- $OPT_DIR = "C:/opt/x64"
#
- $BOOST_DIR = "$OPT_DIR/boost_current"
#
- $BOOST_INCLUDE_DIR = "$BOOST_DIR/include"
#
- $BOOST_LIB_DIR = "$BOOST_DIR/lib"
#
- $QT_MSVC_DIR = "C:/Qt/6.2.4/msvc2019_64"
#
- $QTCMake_DIR = "$QT_MSVC_DIR/lib/cmake"
#
- $BUILD_DIR = "build"
#
- echo "# Pythonpath1 <$Env:PYTHONPATH>"
#
- echo "# CI_PRJ_DIR <$Env:CI_PROJECT_DIR>"
#
- $env:PYTHONPATH += "$CI_PROJECT_DIR/build/lib"
#
# change the system PATH temporarily (needed for tests)
#
- $env:PATH = "$QT_MSVC_DIR/bin;$env:PATH"
#
- echo "# Pythonpath2 <$Env:PYTHONPATH>"
#
# list powershell properties
#
- echo "# Path <$Env:Path>"
#
- echo "# Powershell <$PSHOME>`n PS Profile <$PROFILE>`n PS Command-Path <$PSCOMMANDPATH>"
#
# list all environmental variables
#
- 'dir Env:'
#
# make the CMake build directory
#
- if($CI_PIPELINE_SOURCE -eq "schedule") { mkdir -Force $BUILD_DIR; echo "scheduled build" }
#
- if(!(Test-Path -path $BUILD_DIR)) { mkdir -Force $BUILD_DIR; echo "build from scratch" }
#
- cd $BUILD_DIR
#
- Remove-Item CM* -Recurse
#
- pwd
#
# configure, make, test, pack
#
- cmake --version
#
- cmake -G "Visual Studio 17 2022" -A x64 -T host=x64 -DCMAKE_PREFIX_PATH="$OPT_DIR;$QTCMake_DIR" -DQTDIR="$QT_MSVC_DIR" -DCMAKE_INCLUDE_PATH="$BOOST_INCLUDE_DIR" -DCMAKE_LIBRARY_PATH="$BOOST_LIB_DIR" -DBA_PY_PACKAGE=ON -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -B. ..
#
- pwd
#
- if($CI_PIPELINE_SOURCE -eq "schedule") { cmake --build . --target clean; echo "redundant target purge done" }
#
- cmake --build . --config Release
#
- ctest -C Release --parallel 8 --output-on-failure
#
- cpack -C Release -B ./winpackage
#
artifacts:
#
paths:
#
- build/winpackage/BornAgain*.exe
#
- build/PythonPackage/py*/wheel/*.whl
#
expire_in: 10 days
windows
:
tags
:
-
Windows
stage
:
build
cache
:
# key: build-cache
# paths:
# - build/
script
:
-
$OPT_DIR = "C:/opt/x64"
-
$BOOST_DIR = "$OPT_DIR/boost_current"
-
$BOOST_INCLUDE_DIR = "$BOOST_DIR/include"
-
$BOOST_LIB_DIR = "$BOOST_DIR/lib"
-
$QT_MSVC_DIR = "C:/Qt/6.2.4/msvc2019_64"
-
$QTCMake_DIR = "$QT_MSVC_DIR/lib/cmake"
-
$BUILD_DIR = "build"
-
echo "# Pythonpath1 <$Env:PYTHONPATH>"
-
echo "# CI_PRJ_DIR <$Env:CI_PROJECT_DIR>"
-
$env:PYTHONPATH += "$CI_PROJECT_DIR/build/lib"
# change the system PATH temporarily (needed for tests)
-
$env:PATH = "$QT_MSVC_DIR/bin;$env:PATH"
-
echo "# Pythonpath2 <$Env:PYTHONPATH>"
# list powershell properties
-
echo "# Path <$Env:Path>"
-
echo "# Powershell <$PSHOME>`n PS Profile <$PROFILE>`n PS Command-Path <$PSCOMMANDPATH>"
# list all environmental variables
-
'
dir
Env:'
# make the CMake build directory
-
if($CI_PIPELINE_SOURCE -eq "schedule") { mkdir -Force $BUILD_DIR; echo "scheduled build" }
-
if(!(Test-Path -path $BUILD_DIR)) { mkdir -Force $BUILD_DIR; echo "build from scratch" }
-
cd $BUILD_DIR
-
Remove-Item CM* -Recurse
-
pwd
# configure, make, test, pack
-
cmake --version
-
cmake -G "Visual Studio 17 2022" -A x64 -T host=x64 -DCMAKE_PREFIX_PATH="$OPT_DIR;$QTCMake_DIR" -DQTDIR="$QT_MSVC_DIR" -DCMAKE_INCLUDE_PATH="$BOOST_INCLUDE_DIR" -DCMAKE_LIBRARY_PATH="$BOOST_LIB_DIR" -DBA_PY_PACKAGE=ON -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -B. ..
-
pwd
-
if($CI_PIPELINE_SOURCE -eq "schedule") { cmake --build . --target clean; echo "redundant target purge done" }
-
cmake --build . --config Release
-
ctest -C Release --parallel 8 --output-on-failure
-
cpack -C Release -B ./winpackage
artifacts
:
paths
:
-
build/winpackage/BornAgain*.exe
-
build/PythonPackage/py*/wheel/*.whl
expire_in
:
10 days
webdoc
:
rules
:
Loading