1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-11-03 20:54:07 +01:00

[wheel build] Fix arm installation with rights

This commit is contained in:
q-posev 2024-08-17 21:39:29 +02:00
parent d50f8e8bc7
commit 8f84766ebc

View File

@ -41,6 +41,8 @@ jobs:
contains(needs.get_commit_message.outputs.message, '[wheel build]') || contains(needs.get_commit_message.outputs.message, '[wheel build]') ||
(github.repository == 'trex-coe/trexio' && startswith(github.ref, 'refs/tags/v')) (github.repository == 'trex-coe/trexio' && startswith(github.ref, 'refs/tags/v'))
runs-on: ${{ matrix.buildplat[0] }} runs-on: ${{ matrix.buildplat[0] }}
env:
HDF5_INSTALLDIR: "/tmp/hdf5"
strategy: strategy:
# Ensure that a wheel builder finishes even if another fails # Ensure that a wheel builder finishes even if another fails
fail-fast: false fail-fast: false
@ -78,21 +80,22 @@ jobs:
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
./autogen.sh ./autogen.sh
./configure CC=gcc-12 --prefix /usr/local --enable-build-mode=production --with-szlib ./configure CC=gcc-12 --prefix $HDF5_INSTALLDIR --enable-build-mode=production --with-szlib
make -j3 make -j3
make install make install
- name: configure with autotools - name: configure with autotools
run: | run: |
./autogen.sh ./autogen.sh
export PATH=${PATH}:${HDF5_INSTALLDIR}/bin
./configure FC=gfortran-12 --enable-silent-rules ./configure FC=gfortran-12 --enable-silent-rules
make -j3 make -j3
make -j3 check make -j3 check
- name: prepare python - name: prepare python
run: | run: |
export H5_CFLAGS="-I/usr/local/include" export H5_CFLAGS="-I${HDF5_INCLUDEDIR}/include"
export H5_LDFLAGS="-L/usr/local/lib" export H5_LDFLAGS="-L${HDF5_INCLUDEDIR}/lib"
make python-install make python-install
- name: cleanup python - name: cleanup python
@ -108,7 +111,7 @@ jobs:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }} CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_BUILD_VERBOSITY: 3 CIBW_BUILD_VERBOSITY: 3
CIBW_BUILD_FRONTEND: "build" CIBW_BUILD_FRONTEND: "build"
CIBW_ENVIRONMENT_LINUX: H5_CFLAGS="-I$(brew --prefix hdf5)/include" H5_LDFLAGS="-L$(brew --prefix hdf5)/lib" CIBW_ENVIRONMENT_LINUX: H5_CFLAGS="-I/tmp/hdf5/include" H5_LDFLAGS="-L/tmp/hdf5/lib"
CIBW_TEST_REQUIRES: pytest CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMANDS: "pytest -v --all python/test/test_api.py" CIBW_TEST_COMMANDS: "pytest -v --all python/test/test_api.py"