Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ on:
pull_request: {}

jobs:
windows:
windows-mkl:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
feature: ["intel-mkl", "source"]
download: ["nuget", "ocipkg"]
steps:
- uses: actions/checkout@v1
- name: Get MKL using NuGet
if: ${{ matrix.feature == 'intel-mkl' }}
if: ${{ matrix.download == 'nuget' }}
run: |
nuget install intelmkl.devel.cluster.win-x64 -Version 2022.0.3.171
nuget install intelmkl.static.cluster.win-x64 -Version 2022.0.3.171
Expand All @@ -28,7 +28,20 @@ jobs:
args: >
--all-targets
--manifest-path=fftw/Cargo.toml
--features=${{ matrix.feature }}
--features=intel-mkl
--no-default-features

windows-source:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
with:
command: test
args: >
--all-targets
--manifest-path=fftw/Cargo.toml
--features=source
--no-default-features

macos:
Expand Down
4 changes: 2 additions & 2 deletions fftw-src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ fn main() {
if cfg!(target_os = "windows") {
download_archive_windows(&out_dir).unwrap();
println!("cargo:rustc-link-search={}", out_dir.display());
println!("cargo:rustc-link-lib=libfftw3-3");
println!("cargo:rustc-link-lib=libfftw3f-3");
println!("cargo:rustc-link-lib=static=libfftw3-3");
println!("cargo:rustc-link-lib=static=libfftw3f-3");
} else {
build_unix(&out_dir);
println!("cargo:rustc-link-search={}", out_dir.join("lib").display());
Expand Down
4 changes: 2 additions & 2 deletions fftw-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ use libc::FILE;
pub use num_complex::Complex32 as fftwf_complex;
pub use num_complex::Complex64 as fftw_complex;

#[cfg_attr(feature = "system", link(name = "fftw3"))]
#[cfg_attr(feature = "system", link(name = "fftw3", kind = "static"))]
extern "C" {}
#[cfg_attr(feature = "system", link(name = "fftw3f"))]
#[cfg_attr(feature = "system", link(name = "fftw3f", kind = "static"))]
extern "C" {}

include!("fftw.rs");