Skip to content

ci: install fftw from source #27

ci: install fftw from source

ci: install fftw from source #27

name: Build Python wheels (skbuild)
on: [push, pull_request]
jobs:
build_wheels_unix:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD_VERBOSITY: 1
CIBW_SKIP: "pp* *musllinux*"
CIBW_ARCHS_LINUX: "x86_64"
CIBW_BEFORE_ALL_LINUX: yum install -y fftw3-devel
CIBW_BEFORE_ALL_MACOS: brew install gcc@14 fftw
CIBW_ENVIRONMENT_MACOS: >
FC=gfortran-14
CC=gcc-14
CXX=g++-14
MACOSX_DEPLOYMENT_TARGET=13
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
build_wheels_win:
name: Build wheels on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install FFTW
run: |
Invoke-WebRequeset -Uri "http://www.fftw.org/fftw-3.3.10.zip" -OutFile "${{ github.workspace }}\fftw.zip"
Expand-Archive -Path "${{ github.workspace }}\fftw.zip" -DestinationPath "${{ github.workspace }}\fftw"
cmake -B "${{ github.workspace }}\fftw-build" "${{ github.workspace }}\fftw"
cmake --build "${{ github.workspace }}\fftw-build"
cmake --install "${{ github.workspace }}\fftw-build"
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: AMD64
CIBW_BUILD_VERBOSITY: 1
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl