2023-08-31 12:12:52 +02:00
|
|
|
---
|
|
|
|
|
2024-05-20 14:56:13 +02:00
|
|
|
labels:
|
|
|
|
hostname: ci-runner.server10.kruton.de
|
|
|
|
|
2023-08-31 12:12:52 +02:00
|
|
|
steps:
|
|
|
|
build:
|
|
|
|
image: chizeta/centos:8
|
2024-05-18 23:56:37 +02:00
|
|
|
pull: true
|
2024-05-20 14:56:13 +02:00
|
|
|
when:
|
|
|
|
branch: [main, dev]
|
2024-05-20 14:59:17 +02:00
|
|
|
event: [push, pull_request, manual]
|
2023-08-31 12:15:45 +02:00
|
|
|
commands:
|
|
|
|
- source /opt/rh/gcc-toolset-9/enable
|
2024-05-18 18:32:38 +02:00
|
|
|
- source /etc/profile.d/modules.sh
|
2024-05-18 18:09:10 +02:00
|
|
|
- module use --append /usr/share/modulefiles
|
|
|
|
- module load mpi
|
2024-05-18 23:56:37 +02:00
|
|
|
- chown -R test:test .
|
2024-05-18 23:52:56 +02:00
|
|
|
- su test
|
2023-08-31 12:15:45 +02:00
|
|
|
- mkdir build-gcc
|
|
|
|
- cd build-gcc
|
2024-02-02 20:31:50 +01:00
|
|
|
- cmake3 -DSCALAR_BUILD=on ..
|
2023-08-31 12:15:45 +02:00
|
|
|
- make -j2
|
|
|
|
- cd ..
|
|
|
|
- mkdir build-clang
|
|
|
|
- cd build-clang
|
2024-05-20 14:56:13 +02:00
|
|
|
- CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake3 -DSCALAR_BUILD=on ..
|
2023-08-31 12:15:45 +02:00
|
|
|
- make -j2
|
2024-05-20 15:09:51 +02:00
|
|
|
- cd ../build-gcc
|
2024-05-20 17:36:00 +02:00
|
|
|
- make test && cd ../build-clang && make test
|