Skip to content
Snippets Groups Projects
Commit 691bb6e6 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Move compatibility builds to separate pipeline stage

parent dc72414c
No related branches found
No related tags found
No related merge requests found
...@@ -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: false allow_failure: true
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=libc++" 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=libstdc++ -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=libc++" 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=libstdc++ -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=libc++" 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=libstdc++ -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=libc++" 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=libstdc++ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment