-
Notifications
You must be signed in to change notification settings - Fork 40
/
.gitlab-ci.yml
54 lines (49 loc) · 1.18 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
default:
image: ${container_registry}/sst-base-env-ubuntu20.04:0.2
tags:
- xlarge
stages:
- build-nodep
- build-with-core
build:core:
stage: build-nodep
script:
- git clone --single-branch --branch devel https://github.com/sstsimulator/sst-core.git sst-core
- cmake -B core-build sst-core/experimental -DCMAKE_INSTALL_PREFIX=core-install
- cmake --build core-build -j $(nproc)
- cmake --install core-build
- core-install/bin/sst-test-core
artifacts:
name: core-install
expire_in: 1 week
paths:
- core-install/
build:no-core:
stage: build-nodep
script:
- sh bootstrap.sh
- mkdir -p build
- cd build && ../configure
- make -j $(nproc)
- make install
- make check
- make installcheck
build:with-core:
stage: build-with-core
needs:
job: build:core
artifacts: true
script:
- sh bootstrap.sh
- mkdir -p build
- cd build && ../configure --with-sst-core=$PWD/../core-install
- make -j $(nproc)
- make install
- make check
- make installcheck
build:mpi-core:
extends: build:with-core
variables:
CC: mpicc
CXX: mpic++
MPI_LAUNCHER: 'mpirun -np 3 --allow-run-as-root'