Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
691bb6e6
Commit
691bb6e6
authored
1 year ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Move compatibility builds to separate pipeline stage
parent
dc72414c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+35
-9
35 additions, 9 deletions
.gitlab-ci.yml
with
35 additions
and
9 deletions
.gitlab-ci.yml
+
35
−
9
View file @
691bb6e6
...
@@ -18,14 +18,15 @@ workflow:
...
@@ -18,14 +18,15 @@ workflow:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
stages
:
stages
:
-
compatibility
-
build
-
build
-
run
-
run
-
test
-
test
building
_stage
:
compatibility
_stage
:
stage
:
build
stage
:
compatibility
tags
:
[
"
np-tmcode"
]
tags
:
[
"
np-tmcode"
]
allow_failure
:
fals
e
allow_failure
:
tru
e
artifacts
:
artifacts
:
paths
:
paths
:
-
build/cluster/*
-
build/cluster/*
...
@@ -33,7 +34,6 @@ building_stage:
...
@@ -33,7 +34,6 @@ building_stage:
-
build/testing/*
-
build/testing/*
-
build/trapping/*
-
build/trapping/*
-
build/libnptm/*
-
build/libnptm/*
-
doc/build/*
exclude
:
exclude
:
-
"
.git*"
-
"
.git*"
-
"
.git/**/*"
-
"
.git/**/*"
...
@@ -52,18 +52,44 @@ building_stage:
...
@@ -52,18 +52,44 @@ building_stage:
-
echo "Running make with gnu compilers version 12..."
-
echo "Running make with gnu compilers version 12..."
-
make clean && BUILDDIR=$PWD/../build_gnu12 CXX=g++-12 FC=gfortran-12 make -j
-
make clean && BUILDDIR=$PWD/../build_gnu12 CXX=g++-12 FC=gfortran-12 make -j
-
echo "Running make with flang version 16 and clang version 13..."
-
echo "Running make with flang version 16 and clang version 13..."
-
make clean && BUILDDIR=$PWD/../build_clang13-flang16 CXX="clang++-13 -stdlib=lib
c++
" FC=flang-new-16 FCFLAGS=-O3 LDFLAGS=-L/usr/lib/llvm-16/lib make -j
-
make clean && BUILDDIR=$PWD/../build_clang13-flang16 CXX="clang++-13 -stdlib=lib
stdc++ -I/usr/include/c++/12 -I/usr/include/x86_64-linux-gnu/c++/12
" FC=flang-new-16 FCFLAGS=-O3 LDFLAGS=
"
-L/usr/lib/llvm-16/lib
-L/usr/lib/gcc/x86_64-linux-gnu/12"
make -j
-
echo "Running make with flang version 16 and clang version 14..."
-
echo "Running make with flang version 16 and clang version 14..."
-
make clean && BUILDDIR=$PWD/../build_clang14-flang16 CXX="clang++-14 -stdlib=lib
c++
" FC=flang-new-16 FCFLAGS=-O3 LDFLAGS=-L/usr/lib/llvm-16/lib make -j
-
make clean && BUILDDIR=$PWD/../build_clang14-flang16 CXX="clang++-14 -stdlib=lib
stdc++ -I/usr/include/c++/12 -I/usr/include/x86_64-linux-gnu/c++/12
" FC=flang-new-16 FCFLAGS=-O3 LDFLAGS=
"
-L/usr/lib/llvm-16/lib
-L/usr/lib/gcc/x86_64-linux-gnu/12"
make -j
-
echo "Running make with flang version 16 and clang version 15..."
-
echo "Running make with flang version 16 and clang version 15..."
-
make clean && BUILDDIR=$PWD/../build_clang15-flang16 CXX="clang++-15 -stdlib=lib
c++
" FC=flang-new-16 FCFLAGS=-O3 LDFLAGS=-L/usr/lib/llvm-16/lib make -j
-
make clean && BUILDDIR=$PWD/../build_clang15-flang16 CXX="clang++-15 -stdlib=lib
stdc++ -I/usr/include/c++/12 -I/usr/include/x86_64-linux-gnu/c++/12
" FC=flang-new-16 FCFLAGS=-O3 LDFLAGS=
"
-L/usr/lib/llvm-16/lib
-L/usr/lib/gcc/x86_64-linux-gnu/12"
make -j
-
echo "Running make with flang version 16 and clang version 16..."
-
echo "Running make with flang version 16 and clang version 16..."
-
make clean && BUILDDIR=$PWD/../build_clang16-flang16 CXX="clang++-16 -stdlib=lib
c++
" FC=flang-new-16 FCFLAGS=-O3 LDFLAGS=-L/usr/lib/llvm-16/lib make -j
-
make clean && BUILDDIR=$PWD/../build_clang16-flang16 CXX="clang++-16 -stdlib=lib
stdc++ -I/usr/include/c++/12 -I/usr/include/x86_64-linux-gnu/c++/12
" FC=flang-new-16 FCFLAGS=-O3 LDFLAGS=
"
-L/usr/lib/llvm-16/lib
-L/usr/lib/gcc/x86_64-linux-gnu/12"
make -j
-
echo "Running make with Intel ifort and Intel icpx..."
-
echo "Running make with Intel ifort and Intel icpx..."
-
make clean && PATH=/opt/intel/oneapi/compiler/latest/bin:$PATH BUILDDIR=$PWD/../build_ifort-icpx CXX=icpx FC=ifort FCFLAGS="-O3 -diag-disable=10448" make -j
-
make clean && PATH=/opt/intel/oneapi/compiler/latest/bin:$PATH BUILDDIR=$PWD/../build_ifort-icpx CXX=icpx FC=ifort FCFLAGS="-O3 -diag-disable=10448" make -j
-
echo "Running make with Intel ifx and Intel icpx..."
-
echo "Running make with Intel ifx and Intel icpx..."
-
make clean && LD_LIBRARY_PATH=/opt/intel/oneapi/compiler/latest/lib PATH=/opt/intel/oneapi/compiler/latest/bin:$PATH BUILDDIR=$PWD/../build_ifx-icpx CXX=icpx FC=ifx FCFLAGS=-O3 make -j
-
make clean && LD_LIBRARY_PATH=/opt/intel/oneapi/compiler/latest/lib PATH=/opt/intel/oneapi/compiler/latest/bin:$PATH BUILDDIR=$PWD/../build_ifx-icpx CXX=icpx FC=ifx FCFLAGS=-O3 make -j
-
echo "Finally running make with default compilers..."
building_stage
:
stage
:
build
tags
:
[
"
np-tmcode"
]
allow_failure
:
false
artifacts
:
paths
:
-
build/cluster/*
-
build/sphere/*
-
build/testing/*
-
build/trapping/*
-
build/libnptm/*
-
doc/build/*
exclude
:
-
"
.git*"
-
"
.git/**/*"
expire_in
:
2 hours
script
:
# bash commands to be executed
-
pwd
-
hostname
-
echo $CI_COMMIT_SHA
-
echo $CI_COMMIT_BRANCH
-
echo "Getting system info ..."
-
cat /etc/os-release
-
cd src
-
echo "Running make with default compilers..."
-
make clean && make -j
-
make clean && make -j
-
make docs -j && make -C ../doc/build/latex -j
-
make docs -j && make -C ../doc/build/latex -j
...
...
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