Skip to content

Commit 074bfc3

Browse files
authored
Merge pull request #203 from rust-ndarray/test-matrix
Add OpenBLAS/Netlib tests for macOS
2 parents 45b127d + 463f8e5 commit 074bfc3

File tree

2 files changed

+33
-32
lines changed

2 files changed

+33
-32
lines changed

.github/workflows/rust.yml

+28-27
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request: {}
88

99
jobs:
10-
windows-intel-mkl:
10+
windows:
1111
runs-on: windows-2019
1212
steps:
1313
- uses: actions/checkout@v1
@@ -16,45 +16,46 @@ jobs:
1616
command: test
1717
args: --features=intel-mkl --no-default-features
1818

19-
macos-intel-mkl:
19+
macos:
2020
runs-on: macos-10.15
21+
env:
22+
CC: gcc-9
23+
FC: gfortran-9
24+
LIBRARY_PATH: /usr/local/opt/gcc/lib/gcc/9
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
feature:
29+
- netlib
30+
- openblas
31+
- intel-mkl
2132
steps:
2233
- uses: actions/checkout@v1
2334
- uses: actions-rs/cargo@v1
2435
with:
2536
command: test
26-
args: --features=intel-mkl --no-default-features
27-
28-
linux-intel-mkl:
29-
runs-on: ubuntu-18.04
30-
steps:
31-
- uses: actions/checkout@v1
32-
- uses: actions-rs/cargo@v1
33-
with:
34-
command: test
35-
args: --features=intel-mkl --no-default-features
36-
37-
linux-netlib:
38-
runs-on: ubuntu-18.04
39-
steps:
40-
- uses: actions/checkout@v1
41-
- name: apt
42-
run: sudo apt update && sudo apt install -y gfortran
43-
- uses: actions-rs/cargo@v1
44-
with:
45-
command: test
46-
args: --features=netlib --no-default-features
37+
args: --features=${{ matrix.feature }} --no-default-features
4738

48-
linux-openblas:
39+
linux:
4940
runs-on: ubuntu-18.04
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
feature:
45+
- netlib
46+
- openblas
47+
- intel-mkl
5048
steps:
5149
- uses: actions/checkout@v1
52-
- name: apt
53-
run: sudo apt update && sudo apt install -y gfortran
50+
- name: apt-install gfortran
51+
run: |
52+
sudo apt update
53+
sudo apt install -y gfortran
54+
if: ${{ matrix.feature != 'intel-mkl' }}
5455
- uses: actions-rs/cargo@v1
5556
with:
5657
command: test
57-
args: --features=openblas --no-default-features
58+
args: --features=${{ matrix.feature }} --no-default-features
5859

5960
check-format:
6061
runs-on: ubuntu-18.04

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ ndarray-linalg = { version = "0.12", features = ["openblas"] }
4343

4444
### Tested Environments
4545

46-
|Backend | Linux | Windows | macOS |
47-
|:-------|:-----:|:-------:|:-----:|
48-
|OpenBLAS|✔️|||
49-
|Netlib|✔️|||
50-
|Intel MKL|✔️|✔️|✔️|
46+
|Backend | Linux | Windows | macOS |
47+
|:--------|:-----:|:-------:|:-----:|
48+
|OpenBLAS |✔️ |- |✔️ |
49+
|Netlib |✔️ |- |✔️ |
50+
|Intel MKL|✔️ |✔️ |✔️ |
5151

5252
### For librarian
5353
If you creating a library depending on this crate, we encourage you not to link any backend:

0 commit comments

Comments
 (0)