Skip to content

Commit a42e5c9

Browse files
committed
Fix AdaptiveCpp source directory detection
1 parent 78c855b commit a42e5c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/sycl-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ jobs:
106106
rm -rf "${source_dir}" "${build_dir}"
107107
mkdir -p "${build_dir}" "${install_dir}"
108108
tar -xzf "${archive}" -C "${RUNNER_TEMP}"
109-
extracted_dir="$(find "${RUNNER_TEMP}" -maxdepth 1 -type d -name 'AdaptiveCpp-*' | head -n 1)"
109+
extracted_dir="$(find "${RUNNER_TEMP}" -maxdepth 2 -type f -path '*/AdaptiveCpp-*/CMakeLists.txt' -print | head -n 1)"
110+
extracted_dir="$(dirname "${extracted_dir}")"
110111
mv "${extracted_dir}" "${source_dir}"
111112
112113
cmake -S "${source_dir}" -B "${build_dir}" -G Ninja \

0 commit comments

Comments
 (0)