Skip to content

Commit

Permalink
u2
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Sep 7, 2024
1 parent ba3d6a0 commit 365a514
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ jobs:
- if: matrix.os == 'macos'
name: Install hdf5 - MacOS
run: brew install [email protected]
- name: Run test - Ubuntu
- if: matrix.os == 'ubuntu'
name: Run test - Ubuntu
run: bundle exec rake test
- name: Run test - MacOS
- if: matrix.os == 'macos'
name: Run test - MacOS
run: bundle exec rake test
env:
HDF5_LIB_PATH: /opt/homebrew/Cellar/[email protected]/1.10.11/lib
2 changes: 1 addition & 1 deletion lib/hdf5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Error < StandardError; end
class << self
attr_accessor :lib_path

def search_hdf5lib(name = nil)
def search_hdf5lib
name = "libhdf5.#{FFI::Platform::LIBSUFFIX}"
return File.expand_path(name, ENV['HDF5_LIB_PATH']) if ENV['HDF5_LIB_PATH']

Expand Down

0 comments on commit 365a514

Please sign in to comment.