1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-10-02 06:21:05 +02:00

[wheel build] Test macos wheels

This commit is contained in:
q-posev 2024-08-17 20:20:18 +02:00
parent baa4b2a428
commit 37a229786f
2 changed files with 47 additions and 37 deletions

View File

@ -105,29 +105,29 @@ jobs:
name: pytrexio-source
path: ./trexio-*.tar.gz
- name: maintainer clean
run: make maintainer-clean
- name: reconfigure with clang and AddressSanitizer
run: |
./autogen.sh
./configure CC=clang-15 CFLAGS="-O2 -fsanitize=address -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address" --enable-silent-rules
- name: recompile TREXIO
run: make -j2
- name: recheck TREXIO for memory leaks
run: make -j2 check
- name: Archive test log file
if: failure()
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2
with:
name: test-report-ubuntu-2
path: test-suite.log
- name: maintainer clean
run: make maintainer-clean
# - name: maintainer clean
# run: make maintainer-clean
#
# - name: reconfigure with clang and AddressSanitizer
# run: |
# ./autogen.sh
# ./configure CC=clang-15 CFLAGS="-O2 -fsanitize=address -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address" --enable-silent-rules
#
# - name: recompile TREXIO
# run: make -j2
#
# - name: recheck TREXIO for memory leaks
# run: make -j2 check
#
# - name: Archive test log file
# if: failure()
# uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2
# with:
# name: test-report-ubuntu-2
# path: test-suite.log
#
# - name: maintainer clean
# run: make maintainer-clean
trexio_macos:
name: arm64 MacOS

View File

@ -64,26 +64,36 @@ jobs:
with:
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
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
env:
CIBW_PRERELEASE_PYTHONS: False
CIBW_FREE_THREADED_SUPPORT: False
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_FRONTEND: "build"
CIBW_ENVIRONMENT_LINUX: H5_CFLAGS="-I$(brew --prefix hdf5)/include" H5_LDFLAGS="-L$(brew --prefix hdf5)/lib"