Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/scripts/run_affected_benchmarks
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ main() {
echo "Finding C benchmark files in ${directories}..."
c_bench_files=$(find "${directories}" -maxdepth 5 \( -wholename '**/benchmark/c/benchmark*.c' -or -wholename '**/benchmark/c/**/benchmark*.c' \) -exec realpath {} \; | grep -v '/fixtures/' | sort -u | tr '\n' ' ') || true

# If benchmarks requiring Cephes are found, install the Cephes library:
c_cephes_makefiles=$(find "${directories}" -maxdepth 5 -wholename '**/benchmark/c/**/Makefile' -exec grep -l 'CEPHES' {} + || true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Targeting the CEPHES environment variable is a bit brittle (this could always change), but I don't see a better alternative atm.

if [ -n "${c_cephes_makefiles}" ]; then
make install-deps-cephes
fi

if [ -n "${c_bench_files}" ]; then
make benchmark-c-files FILES="${c_bench_files}"
else
Expand Down