Skip to content

Commit

Permalink
Disable MKL on macOS CI
Browse files Browse the repository at this point in the history
GitHub's macOS runners switched to using the Apple Silicon architecture,
which is not supported by Intel's MKL.
  • Loading branch information
msk committed May 20, 2024
1 parent ebaa38b commit 855335b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,14 @@ jobs:
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Install Intel MKL
if: matrix.os == 'macOS-latest'
run: |
sudo mkdir -p /opt/intel/mkl/lib/intel64
curl https://s3-ap-northeast-1.amazonaws.com/rust-intel-mkl/macos/2019.3/mkl-dynamic-lp64-seq.tar.zst | zstd -cd | sudo tar -xC /opt/intel/mkl/lib/intel64
- uses: actions/checkout@master
- name: Install Tarpaulin
if: matrix.os == 'ubuntu-latest' && matrix.rust == 'stable'
run: cargo install cargo-tarpaulin
- name: Run tests on macOS
if: matrix.os == 'macOS-latest'
run: |
export LD_LIBRARY_PATH="/opt/intel/mkl/lib/intel64"
cargo test --verbose --features "intel-mkl-system, serialization"
cargo test --verbose --features "serialization"
- name: Run tests
if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest'
run: cargo test --verbose --features "intel-mkl-static, serialization"
Expand Down
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
#[cfg(target_os = "macos")]
println!("cargo:rustc-link-lib=framework=Accelerate");
}

0 comments on commit 855335b

Please sign in to comment.