Skip to content

Commit 0aef45a

Browse files
committed
Add the exact hash instead of stars
1 parent dc1934d commit 0aef45a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/compile.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ repo=intel/graph-compiler
44

55
cd $(dirname "$0")/..
66
llvm_dir=$(cd ..; pwd -P)/install/llvm
7+
llvm_hash=$(cat cmake/llvm-version.txt)
78

89
get_llvm() (
910
local run_id
@@ -12,13 +13,13 @@ get_llvm() (
1213

1314
gh run download "$run_id" \
1415
--repo "$repo" \
15-
--pattern "llvm-*" \
16+
--pattern "llvm-$hash" \
1617
--dir "$llvm_dir"
1718
cd "$llvm_dir"
18-
tar -zxf llvm-*/llvm.tgz
19+
tar -zxf "llvm-$hash"/llvm.tgz
1920
)
2021

21-
test -f "$llvm_dir"/llvm-*/llvm.tgz || get_llvm
22+
test -f "$llvm_dir/llvm-$hash"/llvm.tgz || get_llvm
2223

2324
cmake -S . -G Ninja -B build
2425
cmake --build build --parallel $(nproc)

0 commit comments

Comments
 (0)