1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2025-01-03 18:16:22 +01:00

[wheel build] Try to fix the macos platform tags...

This commit is contained in:
q-posev 2024-08-17 23:09:28 +02:00
parent 5258eb09e1
commit 5e60d3dfc7

View File

@ -74,11 +74,11 @@ jobs:
brew install swig brew install swig
brew install wget brew install wget
- uses: actions/cache@v3 #- uses: actions/cache@v3
id: cache # id: cache
with: # with:
path: $HDF5_INSTALLDIR # path: $HDF5_INSTALLDIR
key: ${{ matrix.buildplat[0] }}-hdf5 # key: ${{ matrix.buildplat[0] }}-hdf5
- name: install hdf5 - name: install hdf5
if: steps.cache.outputs.cache-hit != 'true' if: steps.cache.outputs.cache-hit != 'true'
@ -86,6 +86,11 @@ jobs:
wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_12_3.tar.gz wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_12_3.tar.gz
tar -xzf hdf5-1_12_3.tar.gz tar -xzf hdf5-1_12_3.tar.gz
cd hdf5-hdf5-1_12_3 cd hdf5-hdf5-1_12_3
if [[ "$ARCH" == "arm64" ]]; then
export MACOSX_DEPLOYMENT_TARGET="11.0"
else
export MACOSX_DEPLOYMENT_TARGET="10.9"
fi
./autogen.sh ./autogen.sh
./configure CC=gcc-12 --prefix $HDF5_INSTALLDIR --enable-build-mode=production --with-szlib ./configure CC=gcc-12 --prefix $HDF5_INSTALLDIR --enable-build-mode=production --with-szlib
echo "PWD is $PWD" echo "PWD is $PWD"