Skip to content

Commit

Permalink
ci: install fftw from source
Browse files Browse the repository at this point in the history
  • Loading branch information
janden committed Jun 24, 2024
1 parent 9a7176c commit d10b595
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/python_skbuild_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,18 @@ jobs:
- uses: actions/checkout@v4

- name: Install FFTW
run: C:\msys64\usr\bin\bash.exe -lc "pacman -Sy --noconfirm mingw-w64-x86_64-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
Expand All @@ -50,6 +61,7 @@ jobs:
env:
CIBW_ARCHS: AMD64
CIBW_BUILD_VERBOSITY: 1
FFTW_ROOT: ${{ github.workspace }}\fftw

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit d10b595

Please sign in to comment.