Skip to content

Commit 1f0f1a7

Browse files
committed
build-scx-scheds: introduce SCX_REVISION variable
Allow to specify sched-ext revision in build-scx-scheds action. Signed-off-by: Ihor Solodrai <[email protected]>
1 parent 751608a commit 1f0f1a7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build-scx-scheds/build-scheds.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ set -euo pipefail
44

55
export LLVM_VERSION=${LLVM_VERSION:-20}
66
export SCX_ROOT=${SCX_ROOT:-}
7+
export SCX_REVISION=${SCX_REVISION:-main}
78

89
if [[ -z "$SCX_ROOT" ]]; then
910
export SCX_ROOT=$(mktemp -d scx.XXXX)
10-
git clone --depth=1 --branch=main https://github.com/sched-ext/scx.git $SCX_ROOT
11+
git clone --branch=main https://github.com/sched-ext/scx.git $SCX_ROOT
12+
pushd $SCX_ROOT
13+
git reset --hard $SCX_REVISION
14+
popd
1115
fi
1216

1317
pushd $SCX_ROOT
@@ -16,4 +20,5 @@ meson setup build
1620
meson compile -C build
1721
rm -rf $OUTPUT_DIR
1822
mv build $OUTPUT_DIR
19-
popd
23+
popd
24+

0 commit comments

Comments
 (0)