forked from flatironinstitute/finufft
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (56 loc) · 2.44 KB
/
python_skbuild_wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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-WebRequest -Uri "https://www.fftw.org/fftw-3.3.10.tar.gz" -OutFile "${{ github.workspace }}\fftw.tar.gz"
New-Item -Path "${{ github.workspace }}" -Name "fftw" -ItemType Directory
tar --strip-components=1 -C "${{ github.workspace }}\fftw-source" -zxf "${{ github.workspace }}\fftw.tar.gz"
cmake -S "${{ github.workspace }}\fftw-source" -D ENABLE_AVX2=ON -D BUILD_TESTS=OFF -D BUILD_SHARED_LIBS=OFF -D ENABLE_OPENMP=ON -D ENABLE_FLOAT=OFF -B "${{ github.workspace }}\fftw-build"
cmake --build "${{ github.workspace }}\fftw-build" --config Release
cmake --install "${{ github.workspace }}\fftw-build"
cmake -S "${{ github.workspace }}\fftw-source" -D ENABLE_AVX2=ON -D BUILD_TESTS=OFF -D BUILD_SHARED_LIBS=OFF -D ENABLE_OPENMP=ON -D ENABLE_FLOAT=ON -B "${{ github.workspace }}\fftw-build"
cmake --build "${{ github.workspace }}\fftw-build" --config Release
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
FFTW_ROOT: ${{ github.workspace }}\fftw
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl