Skip to content

Commit 93d654c

Browse files
authored
Modify tornado SDK verification in workflow
Updated the build-and-run workflow to check for tornado in PATH instead of verifying SDK existence.
1 parent b14babc commit 93d654c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build-and-run.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,16 @@ jobs:
130130
echo "Using Tornado SDK: $TORNADO_SDK"
131131
export PATH="$TORNADO_SDK/bin:$JAVA_HOME/bin:$PATH"
132132
133-
# Verify SDK exists
134-
if [ ! -d "$TORNADO_SDK" ]; then
135-
echo "::error::TORNADO_SDK does not exist: $TORNADO_SDK"
133+
# Verify tornado is in PATH
134+
if ! command -v tornado >/dev/null 2>&1; then
135+
echo "::error::tornado not found in PATH"
136136
exit 1
137137
fi
138138

139-
which tornado || { echo "::error::tornado unavailable"; exit 1; }
140139
tornado --version
141140

142141
./llama-tornado --gpu --opencl \
143142
--model "${{ matrix.model }}" \
144-
--prompt "Say hello"
143+
--prompt "Say hello"
144+
145145

0 commit comments

Comments
 (0)