Skip to content

Commit f51973e

Browse files
Make O2 revision configurable
1 parent 8285ef7 commit f51973e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/standalone-benchmark.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
push:
77
branches:
88
- '**'
9+
inputs:
10+
o2_revision:
11+
description: "O2 revision (e.g., daily-20250805-0000-1)"
12+
required: true
13+
default: "daily-20250805-0000-1"
914

1015
jobs:
1116
benchmark:
@@ -39,7 +44,7 @@ jobs:
3944

4045
- name: Build and Run
4146
run: |
42-
. $WORK_DIR/$ALIBUILD_ARCH_PREFIX/O2/daily-20250805-0000-1/etc/profile.d/init.sh
47+
. $WORK_DIR/$ALIBUILD_ARCH_PREFIX/O2/${O2_REVISION}/etc/profile.d/init.sh
4348
export ROOT_INCLUDE_PATH=$(echo "$ROOT_INCLUDE_PATH" | cut -d: -f3-)
4449
4550
mkdir -p ${STANDALONE_DIR}
@@ -54,11 +59,12 @@ jobs:
5459
${STANDALONE_DIR}/ca -e o2-simple -g ${{ matrix.ca_args }} --debug 1 > ${ARTIFACT_FILE}
5560
cat ${ARTIFACT_FILE}
5661
env:
62+
WORK_DIR: /cvmfs/alice.cern.ch
63+
ALIBUILD_ARCH_PREFIX: el9-x86_64/Packages
64+
O2_REVISION: ${{ inputs.o2_revision }}
5765
STANDALONE_DIR: /root/standalone
5866
BUILD_DIR: /root/standalone/build
5967
ARTIFACT_FILE: /root/artifact.txt
60-
WORK_DIR: /cvmfs/alice.cern.ch
61-
ALIBUILD_ARCH_PREFIX: el9-x86_64/Packages
6268

6369
- name: Upload Artifact
6470
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)