mirror of
https://github.com/TREX-CoE/trexio.git
synced 2025-01-03 10:06:01 +01:00
[wheel build] Test macos wheels
This commit is contained in:
parent
baa4b2a428
commit
37a229786f
46
.github/workflows/actions.yml
vendored
46
.github/workflows/actions.yml
vendored
@ -105,29 +105,29 @@ jobs:
|
|||||||
name: pytrexio-source
|
name: pytrexio-source
|
||||||
path: ./trexio-*.tar.gz
|
path: ./trexio-*.tar.gz
|
||||||
|
|
||||||
- name: maintainer clean
|
# - name: maintainer clean
|
||||||
run: make maintainer-clean
|
# run: make maintainer-clean
|
||||||
|
#
|
||||||
- name: reconfigure with clang and AddressSanitizer
|
# - name: reconfigure with clang and AddressSanitizer
|
||||||
run: |
|
# run: |
|
||||||
./autogen.sh
|
# ./autogen.sh
|
||||||
./configure CC=clang-15 CFLAGS="-O2 -fsanitize=address -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address" --enable-silent-rules
|
# ./configure CC=clang-15 CFLAGS="-O2 -fsanitize=address -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address" --enable-silent-rules
|
||||||
|
#
|
||||||
- name: recompile TREXIO
|
# - name: recompile TREXIO
|
||||||
run: make -j2
|
# run: make -j2
|
||||||
|
#
|
||||||
- name: recheck TREXIO for memory leaks
|
# - name: recheck TREXIO for memory leaks
|
||||||
run: make -j2 check
|
# run: make -j2 check
|
||||||
|
#
|
||||||
- name: Archive test log file
|
# - name: Archive test log file
|
||||||
if: failure()
|
# if: failure()
|
||||||
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2
|
# uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2
|
||||||
with:
|
# with:
|
||||||
name: test-report-ubuntu-2
|
# name: test-report-ubuntu-2
|
||||||
path: test-suite.log
|
# path: test-suite.log
|
||||||
|
#
|
||||||
- name: maintainer clean
|
# - name: maintainer clean
|
||||||
run: make maintainer-clean
|
# run: make maintainer-clean
|
||||||
|
|
||||||
trexio_macos:
|
trexio_macos:
|
||||||
name: arm64 MacOS
|
name: arm64 MacOS
|
||||||
|
38
.github/workflows/build-wheels.yml
vendored
38
.github/workflows/build-wheels.yml
vendored
@ -64,26 +64,36 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
|
|
||||||
|
- name: install dependencies
|
||||||
|
run: |
|
||||||
|
brew install emacs
|
||||||
|
brew install hdf5@1.14
|
||||||
|
brew install automake
|
||||||
|
brew install libtool
|
||||||
|
brew install swig
|
||||||
|
brew --prefix hdf5
|
||||||
|
|
||||||
|
- name: configure with autotools
|
||||||
|
run: |
|
||||||
|
./autogen.sh
|
||||||
|
./configure FC=gfortran-12 --enable-silent-rules
|
||||||
|
|
||||||
|
- name: compile TREXIO
|
||||||
|
run: make -j3
|
||||||
|
|
||||||
|
- name: prepare the repo
|
||||||
|
run: |
|
||||||
|
cd tools
|
||||||
|
./prepare_python.sh
|
||||||
|
rm -rf ../src/ ../tools/
|
||||||
|
mv ../python/* ..
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
|
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
|
||||||
env:
|
env:
|
||||||
CIBW_PRERELEASE_PYTHONS: False
|
CIBW_PRERELEASE_PYTHONS: False
|
||||||
CIBW_FREE_THREADED_SUPPORT: False
|
CIBW_FREE_THREADED_SUPPORT: False
|
||||||
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
|
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
|
||||||
CIBW_BEFORE_ALL: >
|
|
||||||
brew install hdf5@1.14 -y &&
|
|
||||||
brew install swig -y &&
|
|
||||||
brew install emacs -y &&
|
|
||||||
brew install automake -y &&
|
|
||||||
brew install libtool -y &&
|
|
||||||
./autogen.sh &&
|
|
||||||
./configure FC=gfortran-12 --enable-silent-rules &&
|
|
||||||
make -j3
|
|
||||||
CIBW_BEFORE_BUILD: >
|
|
||||||
cd tools &&
|
|
||||||
./prepare_python.sh &&
|
|
||||||
rm -rf ../src/ ../tools/ &&
|
|
||||||
mv ../python/* ..
|
|
||||||
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$(brew --prefix hdf5)/include" H5_LDFLAGS="-L$(brew --prefix hdf5)/lib"
|
||||||
|
Loading…
Reference in New Issue
Block a user