Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libmtime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libmtime
Commits
c3710c38
Commit
c3710c38
authored
4 months ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
CI: move the generator-specific part to a separate job
parent
d2c1cd82
No related branches found
No related tags found
1 merge request
!54
CI: test with Ninja
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+21
-15
21 additions, 15 deletions
.gitlab-ci.yml
with
21 additions
and
15 deletions
.gitlab-ci.yml
+
21
−
15
View file @
c3710c38
...
@@ -205,19 +205,25 @@ include:
...
@@ -205,19 +205,25 @@ include:
extends
:
.common
extends
:
.common
variables
:
variables
:
CMAKE_EXTRA_ARGS
:
-DMTIME_ENABLE_FORTRAN_HL:BOOL=OFF
CMAKE_EXTRA_ARGS
:
-DMTIME_ENABLE_FORTRAN_HL:BOOL=OFF
MAKEFLAGS
:
--jobs=${JOB_COUNT} VERBOSE=1
# Cmake initializes Fortran compiler flags from FFLAGS:
# Cmake initializes Fortran compiler flags from FFLAGS:
FFLAGS
:
${FCFLAGS}
FFLAGS
:
${FCFLAGS}
script
:
script
:
-
mkdir build && cd build
-
mkdir build && cd build
-
>
-
>
cmake ..
cmake ..
-G"${CMAKE_GENERATOR}"
-DCheck_ROOT="${LIBCHECK_ROOT}"
-DCheck_ROOT="${LIBCHECK_ROOT}"
${CMAKE_EXTRA_ARGS}
${CMAKE_EXTRA_ARGS}
-
make
2> >(tee ${WARNINGS_FILE})
-
${MAKE_CMD}
2> >(tee ${WARNINGS_FILE})
-
make
test
-
${MAKE_CMD}
test
-
!reference
[
.common
,
script
]
-
!reference
[
.common
,
script
]
.common_cmake_makefiles
:
extends
:
.common_cmake
variables
:
CMAKE_GENERATOR
:
Unix Makefiles
MAKE_CMD
:
make --jobs=${JOB_COUNT} VERBOSE=1
.check_gcc
:
.check_gcc
:
variables
:
variables
:
CFLAGS
:
-g -O2 -Wall -Wextra -pedantic
CFLAGS
:
-g -O2 -Wall -Wextra -pedantic
...
@@ -256,12 +262,12 @@ Check with GCC 11.2.0 (Autotools):
...
@@ -256,12 +262,12 @@ Check with GCC 11.2.0 (Autotools):
cache
:
cache
:
policy
:
pull-push
policy
:
pull-push
Check with GCC 11.2.0 (CMake)
:
Check with GCC 11.2.0 (CMake
, Unix Makefiles
)
:
extends
:
extends
:
-
.common_cmake
-
.common_cmake
_makefiles
-
.check_gcc
-
.check_gcc
before_script
:
before_script
:
-
!reference
[
.common_cmake
,
before_script
]
-
!reference
[
.common_cmake
_makefiles
,
before_script
]
-
!reference
[
.check_gcc
,
before_script
]
-
!reference
[
.check_gcc
,
before_script
]
Check with Intel 2021.5.0 (Autotools)
:
Check with Intel 2021.5.0 (Autotools)
:
...
@@ -275,12 +281,12 @@ Check with Intel 2021.5.0 (Autotools):
...
@@ -275,12 +281,12 @@ Check with Intel 2021.5.0 (Autotools):
-
!reference
[
.common_autotools
,
before_script
]
-
!reference
[
.common_autotools
,
before_script
]
-
!reference
[
.check_intel
,
before_script
]
-
!reference
[
.check_intel
,
before_script
]
Check with Intel 2021.5.0 (CMake)
:
Check with Intel 2021.5.0 (CMake
, Unix Makefiles
)
:
extends
:
extends
:
-
.common_cmake
-
.common_cmake
_makefiles
-
.check_intel
-
.check_intel
before_script
:
before_script
:
-
!reference
[
.common_cmake
,
before_script
]
-
!reference
[
.common_cmake
_makefiles
,
before_script
]
-
!reference
[
.check_intel
,
before_script
]
-
!reference
[
.check_intel
,
before_script
]
Check with NVHPC 22.5 (Autotools)
:
Check with NVHPC 22.5 (Autotools)
:
...
@@ -293,12 +299,12 @@ Check with NVHPC 22.5 (Autotools):
...
@@ -293,12 +299,12 @@ Check with NVHPC 22.5 (Autotools):
# Libtool does not know about NVHPC and its PIC flag:
# Libtool does not know about NVHPC and its PIC flag:
-
export FCFLAGS="$FCFLAGS -fpic"
-
export FCFLAGS="$FCFLAGS -fpic"
Check with NVHPC 22.5 (CMake)
:
Check with NVHPC 22.5 (CMake
, Unix Makefiles
)
:
extends
:
extends
:
-
.common_cmake
-
.common_cmake
_makefiles
-
.check_nvhpc
-
.check_nvhpc
before_script
:
before_script
:
-
!reference
[
.common_cmake
,
before_script
]
-
!reference
[
.common_cmake
_makefiles
,
before_script
]
-
!reference
[
.check_nvhpc
,
before_script
]
-
!reference
[
.check_nvhpc
,
before_script
]
Check with NAG 7.1.7114 (Autotools)
:
Check with NAG 7.1.7114 (Autotools)
:
...
@@ -311,12 +317,12 @@ Check with NAG 7.1.7114 (Autotools):
...
@@ -311,12 +317,12 @@ Check with NAG 7.1.7114 (Autotools):
# nagfor is supposed to use non-default gcc:
# nagfor is supposed to use non-default gcc:
-
export FCFLAGS="-Wc=`which gcc` $FCFLAGS"
-
export FCFLAGS="-Wc=`which gcc` $FCFLAGS"
Check with NAG 7.1.7114 (CMake)
:
Check with NAG 7.1.7114 (CMake
, Unix Makefiles
)
:
extends
:
extends
:
-
.common_cmake
-
.common_cmake
_makefiles
-
.check_nag
-
.check_nag
before_script
:
before_script
:
-
!reference
[
.common_cmake
,
before_script
]
-
!reference
[
.common_cmake
_makefiles
,
before_script
]
-
!reference
[
.check_nag
,
before_script
]
-
!reference
[
.check_nag
,
before_script
]
# nagfor is supposed to use non-default gcc:
# nagfor is supposed to use non-default gcc:
-
export FFLAGS="-Wc=`which gcc` $FFLAGS"
-
export FFLAGS="-Wc=`which gcc` $FFLAGS"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment