mirror of
https://github.com/TREX-CoE/trexio.git
synced 2025-01-08 20:33:36 +01:00
[wheel build] Fix MacOS CI, part 2
This commit is contained in:
parent
742f797d1a
commit
59fe3de505
16
.github/workflows/actions.yml
vendored
16
.github/workflows/actions.yml
vendored
@ -112,8 +112,8 @@ jobs:
|
|||||||
run: make maintainer-clean
|
run: make maintainer-clean
|
||||||
|
|
||||||
trexio_macos:
|
trexio_macos:
|
||||||
name: x86 MacOS 11
|
name: x86 MacOS 12
|
||||||
runs-on: macos-11
|
runs-on: macos-12
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791
|
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791
|
||||||
@ -121,8 +121,9 @@ jobs:
|
|||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: |
|
run: |
|
||||||
brew install emacs
|
brew install emacs
|
||||||
brew install hdf5
|
brew install hdf5@1.12
|
||||||
brew install automake
|
brew install automake
|
||||||
|
brew --prefix hdf5
|
||||||
|
|
||||||
- name: configure with autotools
|
- name: configure with autotools
|
||||||
run: |
|
run: |
|
||||||
@ -134,6 +135,15 @@ jobs:
|
|||||||
|
|
||||||
- name: check TREXIO
|
- name: check TREXIO
|
||||||
run: make -j3 check
|
run: make -j3 check
|
||||||
|
|
||||||
|
- name: compile Python API
|
||||||
|
run: |
|
||||||
|
export H5_CFLAGS="-I$(brew --prefix hdf5)/include"
|
||||||
|
export H5_LDFLAGS="-L$(brew --prefix hdf5)/lib"
|
||||||
|
make python-install
|
||||||
|
|
||||||
|
- name: test Python API
|
||||||
|
run: make python-test
|
||||||
|
|
||||||
- name: Archive test log file
|
- name: Archive test log file
|
||||||
if: failure()
|
if: failure()
|
||||||
|
9
.github/workflows/build-wheels.yml
vendored
9
.github/workflows/build-wheels.yml
vendored
@ -109,11 +109,6 @@ jobs:
|
|||||||
# ERROR: trexio-1.1.0-cp39-cp39-macosx_11_0_x86_64.whl is not a supported wheel on this platform.
|
# ERROR: trexio-1.1.0-cp39-cp39-macosx_11_0_x86_64.whl is not a supported wheel on this platform.
|
||||||
# This happens even with the MACOSX_DEPLOYMENT_TARGET trick. Perhaps it can be solved by configuring the build system
|
# This happens even with the MACOSX_DEPLOYMENT_TARGET trick. Perhaps it can be solved by configuring the build system
|
||||||
# to produce the wheels for MacOS-11 from the very beginning
|
# to produce the wheels for MacOS-11 from the very beginning
|
||||||
#exclude:
|
|
||||||
# - os: macos-11
|
|
||||||
env:
|
|
||||||
H5_LDFLAGS: '-L/usr/local/Cellar/hdf5/1.12.1/lib'
|
|
||||||
H5_CFLAGS: '-I/usr/local/Cellar/hdf5/1.12.1/include'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -126,7 +121,7 @@ jobs:
|
|||||||
run: python --version
|
run: python --version
|
||||||
|
|
||||||
- name: Install HDF5
|
- name: Install HDF5
|
||||||
run: brew install hdf5@1.10
|
run: brew install hdf5@1.12
|
||||||
|
|
||||||
# This step is needed to produce wheels with the correct platform tag for MacOS-11 (Big Sur)
|
# This step is needed to produce wheels with the correct platform tag for MacOS-11 (Big Sur)
|
||||||
#- name: Set MACOSX_DEPLOYMENT_TARGET environment variable
|
#- name: Set MACOSX_DEPLOYMENT_TARGET environment variable
|
||||||
@ -158,6 +153,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir wheelhouse/
|
mkdir wheelhouse/
|
||||||
cd trexio-${{ env.PYTREXIO_VERSION }}/
|
cd trexio-${{ env.PYTREXIO_VERSION }}/
|
||||||
|
export H5_CFLAGS="-I$(brew --prefix hdf5)/include"
|
||||||
|
export H5_LDFLAGS="-L$(brew --prefix hdf5)/lib"
|
||||||
python -m build --wheel --outdir=./
|
python -m build --wheel --outdir=./
|
||||||
delocate-wheel trexio-*.whl
|
delocate-wheel trexio-*.whl
|
||||||
mv trexio-*.whl ../wheelhouse/
|
mv trexio-*.whl ../wheelhouse/
|
||||||
|
Loading…
Reference in New Issue
Block a user