Skip to content

Commit 21fc945

Browse files
authored
Merge pull request #267 from mirguest/master
Handling the CI related to KEYHEP_STACK
2 parents f519663 + 7ba8dc7 commit 21fc945

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/main.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ jobs:
2121
runs-on: self-hosted
2222
strategy:
2323
matrix:
24-
LCG_RELEASE: [LCG_EXTERNAL, KEY4HEP_STACK]
25-
# CEPCSW_BLDTOOL: [make, ninja]
26-
CEPCSW_BLDTOOL: [ninja]
24+
LCG_RELEASE:
25+
- LCG_EXTERNAL
26+
- KEY4HEP_STACK
27+
CEPCSW_BLDTOOL:
28+
- ninja
29+
# - make
2730

2831
# Steps represent a sequence of tasks that will be executed as part of the job
2932
steps:

build-k4.sh

+8-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ function error:() {
2020
}
2121

2222
function check-cepcsw-envvar() {
23-
# source /cvmfs/sw.hsf.org/key4hep/setup.sh
24-
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
23+
if [ "${k4_version}" = "nightlies" ]; then
24+
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
25+
else
26+
source /cvmfs/sw.hsf.org/key4hep/setup.sh -r ${k4_version}
27+
fi
28+
2529
# fix the order of compiler
2630
local ccdir=$(dirname $CC)
2731
export PATH=$ccdir:$PATH
@@ -113,8 +117,8 @@ function run-install() {
113117
##############################################################################
114118

115119
# The current default platform
116-
k4_platform=x86_64-linux-gcc11-opt
117-
k4_version=master
120+
k4_platform=${K4_PLATFORM:-x86_64-linux-gcc11-opt}
121+
k4_version=${K4_VERSION:-2024-03-10} # or nightlies
118122
bldtool=${CEPCSW_BLDTOOL} # make, ninja # set in env var
119123

120124
check-cepcsw-envvar || exit -1

0 commit comments

Comments
 (0)