Skip to content

Commit

Permalink
Merge pull request #88 from jipolanco/fix-ci-hdf5
Browse files Browse the repository at this point in the history
CI: fix issues with system HDF5
  • Loading branch information
jipolanco authored Nov 6, 2023
2 parents 9a99b2c + 4b263c7 commit e43e660
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ jobs:
MPIPreferences.use_system_binary()
HDF5.API.set_libraries!("/usr/lib/x86_64-linux-gnu/hdf5/mpich/libhdf5.so", "/usr/lib/x86_64-linux-gnu/hdf5/mpich/libhdf5_hl.so")
# This is to fix issue when loading system HDF5. We need to use the system libcurl instead of Julia's.
# Note: LD_PRELOAD needs to be set here *and not before*, otherwise precompilation fails.
- name: Update LD_PRELOAD for system HDF5
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable
run: echo "LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl.so.4" >> "$GITHUB_ENV"

# This is to avoid precompilation in parallel when using MPI
- name: Precompile test/
shell: julia --color=yes --project=test {0}
Expand All @@ -71,12 +77,6 @@ jobs:
Pkg.instantiate(verbose = true)
Pkg.precompile(strict = false)
# This is to fix issue when loading system HDF5. We need to use the system libcurl instead of Julia's.
# Note: LD_PRELOAD needs to be set here *and not before*, otherwise precompilation fails.
- name: Update LD_PRELOAD for system HDF5
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable
run: echo "LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl.so.4" >> "$GITHUB_ENV"

- uses: julia-actions/julia-runtest@v1

- uses: julia-actions/julia-processcoverage@v1
Expand Down

0 comments on commit e43e660

Please sign in to comment.