Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ jobs:
check_bounds: 'auto'
env:
LIBTRIXI_DEBUG: all
LD_PRELOAD: "" # Disable preloading libcurl.so since it does not work with the JLL-provided libhdf5.so

- name: Run examples
run: |
Expand Down
29 changes: 18 additions & 11 deletions utils/libtrixi-init-julia
Original file line number Diff line number Diff line change
Expand Up @@ -314,17 +314,24 @@ echo

# Set system HDF5 library
echo "Use system HDF5 for Julia... "
JULIA_HDF5_PATH="$hdf5_libdir" JULIA_DEPOT_PATH="$julia_depot" $julia_exec --project=. \
-e 'using Pkg; Pkg.build("HDF5"; verbose = true)'
# Note: The following code replaces the previous line for HDF5 v0.17+, which has not yet
# been released at the time of writing
# -e "
# using Preferences, UUIDs
# set_preferences!(UUID(\"f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f\"),
# \"libhdf5\" => \"$hdf5_library\",
# \"libhdf5_hl\" => \"$hdf5_hl_library\",
# force = true)
# "
# Disable preloading libcurl.so if it has been set when running within the GitHub runner,
# since it does not work with the JLL-provided libhdf5.so
if [ "$CI" = "true" ] && [ -n "$LD_PRELOAD" ]; then
store_ld_preload="$LD_PRELOAD"
LD_PRELOAD=""
fi
JULIA_DEPOT_PATH="$julia_depot" $julia_exec --project=. \
-e "
using Preferences, UUIDs
set_preferences!(UUID(\"f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f\"),
\"libhdf5\" => \"$hdf5_library\",
\"libhdf5_hl\" => \"$hdf5_hl_library\",
force = true)
"
# Restore LD_PRELOAD if it had been set before
if [ "$CI" = "true" ] && [ -n "$store_ld_preload" ]; then
LD_PRELOAD="$store_ld_preload"
fi
[ $? -eq 0 ] || die "could not configure system HDF5 library for Julia"
echo

Expand Down