-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.gitlab-ci.yml
86 lines (70 loc) · 2.07 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# GitLab CI YML file dedicated for LC environment (Ruby)
#
# Spack must be available
# It would be better to install all Boost versions manually,
# as it causes errors often and could exceed the timelimit of the system.
# For '--reserv=ci' option in Slurm, see:
# https://lc.llnl.gov/confluence/spaces/GITLAB/pages/785285769/Special+partitions+for+CI+batch+jobs
include: [component: $CI_SERVER_FQDN/lc-components/id_tokens/id_tokens-component@main]
stages:
- install
- build
variables:
CUSTOM_CI_BUILDS_DIR: "/usr/workspace/$$USER/metall-ci-runner-builds-dir"
GTEST_COLOR: "1"
GIT_DEPTH: 0
# CI_DEBUG_TRACE: "true" # Enable this when debugging this CI
install_boost:
stage: install
tags:
- ruby
- shell
script:
- hostname
- srun -N1 --reserv=ci -A seq sh -c 'for p in "boost@1.86.0" "boost@1.85.0" "boost@1.84.0" "boost@1.83.0" "boost@1.82.0" "boost@1.81.0" "boost@1.80.0"; do spack install --reuse $p; done; spack clean'
.build:
stage: build
tags:
- ruby
- shell
script:
- echo "=== build section ==="
- module load gcc/${GCC_VERSION}
- spack load --first boost@${BOOST_VERSION} arch=$(spack arch)
- export METALL_TEST_DIR="/dev/shm/metall_test-${CI_CONCURRENT_ID}-${CI_PIPELINE_IID}"
- srun -N1 --reserv=ci -A seq bash ./scripts/CI/build_and_test.sh
build_gcc12.1.1_bst1.86.0:
extends: .build
variables:
GCC_VERSION: "12.1.1"
BOOST_VERSION: "1.86.0"
build_gcc12.1.1_bst1.85.0:
extends: .build
variables:
GCC_VERSION: "12.1.1"
BOOST_VERSION: "1.85.0"
build_gcc12.1.1_bst1.84.0:
extends: .build
variables:
GCC_VERSION: "12.1.1"
BOOST_VERSION: "1.84.0"
build_gcc12.1.1_bst1.83.0:
extends: .build
variables:
GCC_VERSION: "12.1.1"
BOOST_VERSION: "1.83.0"
build_gcc12.1.1_bst1.82.0:
extends: .build
variables:
GCC_VERSION: "12.1.1"
BOOST_VERSION: "1.82.0"
build_gcc12.1.1_bst1.81.0:
extends: .build
variables:
GCC_VERSION: "12.1.1"
BOOST_VERSION: "1.81.0"
build_gcc12.1.1_bst1.80.0:
extends: .build
variables:
GCC_VERSION: "12.1.1"
BOOST_VERSION: "1.80.0"