diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 7f38ebc..2cf7754 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -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 diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 31d5540..411a4c2 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -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"