mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-08-24 22:21:43 +02:00
[wheel build] No need to build from several MacOS runners
This commit is contained in:
parent
4d00c44e8e
commit
0df3a70bbe
4
.github/workflows/actions.yml
vendored
4
.github/workflows/actions.yml
vendored
@ -113,7 +113,7 @@ jobs:
|
|||||||
|
|
||||||
trexio_macos:
|
trexio_macos:
|
||||||
name: x86 MacOS 12
|
name: x86 MacOS 12
|
||||||
runs-on: macos-11
|
runs-on: macos-12
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791
|
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791
|
||||||
@ -128,7 +128,7 @@ jobs:
|
|||||||
- name: configure with autotools
|
- name: configure with autotools
|
||||||
run: |
|
run: |
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure FC=gfortran-11 --enable-silent-rules
|
./configure FC=gfortran-12 --enable-silent-rules
|
||||||
|
|
||||||
- name: compile TREXIO
|
- name: compile TREXIO
|
||||||
run: make -j3
|
run: make -j3
|
||||||
|
12
.github/workflows/build-wheels.yml
vendored
12
.github/workflows/build-wheels.yml
vendored
@ -103,12 +103,9 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-11, macos-12]
|
os: [macos-12]
|
||||||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
|
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
|
||||||
# TODO: normally, one could include macos-11 and the OS list above but the produced wheels receive an error upon installation:
|
|
||||||
# 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
|
|
||||||
# to produce the wheels for MacOS-11 from the very beginning
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -123,11 +120,6 @@ jobs:
|
|||||||
- name: Install HDF5
|
- name: Install HDF5
|
||||||
run: brew install hdf5@1.12
|
run: brew install hdf5@1.12
|
||||||
|
|
||||||
# This step is needed to produce wheels with the correct platform tag for MacOS-11 (Big Sur)
|
|
||||||
#- name: Set MACOSX_DEPLOYMENT_TARGET environment variable
|
|
||||||
# if: ${{ matrix.os == 'macos-11' }}
|
|
||||||
# run: echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Compute the PYTREXIO_VERSION environment variable
|
- name: Compute the PYTREXIO_VERSION environment variable
|
||||||
run: echo "PYTREXIO_VERSION=$(grep __version__ python/pytrexio/_version.py | cut -d\ -f3 | tr -d '"')" >> $GITHUB_ENV
|
run: echo "PYTREXIO_VERSION=$(grep __version__ python/pytrexio/_version.py | cut -d\ -f3 | tr -d '"')" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user