diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0abcb1aa..5deaac55 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,7 +7,7 @@ on: pull_request: {} jobs: - windows-intel-mkl: + windows: runs-on: windows-2019 steps: - uses: actions/checkout@v1 @@ -16,45 +16,46 @@ jobs: command: test args: --features=intel-mkl --no-default-features - macos-intel-mkl: + macos: runs-on: macos-10.15 + env: + CC: gcc-9 + FC: gfortran-9 + LIBRARY_PATH: /usr/local/opt/gcc/lib/gcc/9 + strategy: + fail-fast: false + matrix: + feature: + - netlib + - openblas + - intel-mkl steps: - uses: actions/checkout@v1 - uses: actions-rs/cargo@v1 with: command: test - args: --features=intel-mkl --no-default-features - - linux-intel-mkl: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/cargo@v1 - with: - command: test - args: --features=intel-mkl --no-default-features - - linux-netlib: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v1 - - name: apt - run: sudo apt update && sudo apt install -y gfortran - - uses: actions-rs/cargo@v1 - with: - command: test - args: --features=netlib --no-default-features + args: --features=${{ matrix.feature }} --no-default-features - linux-openblas: + linux: runs-on: ubuntu-18.04 + strategy: + fail-fast: false + matrix: + feature: + - netlib + - openblas + - intel-mkl steps: - uses: actions/checkout@v1 - - name: apt - run: sudo apt update && sudo apt install -y gfortran + - name: apt-install gfortran + run: | + sudo apt update + sudo apt install -y gfortran + if: ${{ matrix.feature != 'intel-mkl' }} - uses: actions-rs/cargo@v1 with: command: test - args: --features=openblas --no-default-features + args: --features=${{ matrix.feature }} --no-default-features check-format: runs-on: ubuntu-18.04 diff --git a/README.md b/README.md index 4d64c034..683ddea6 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,11 @@ ndarray-linalg = { version = "0.12", features = ["openblas"] } ### Tested Environments -|Backend | Linux | Windows | macOS | -|:-------|:-----:|:-------:|:-----:| -|OpenBLAS|✔️|❌|❌| -|Netlib|✔️|❌|❌| -|Intel MKL|✔️|✔️|✔️| +|Backend | Linux | Windows | macOS | +|:--------|:-----:|:-------:|:-----:| +|OpenBLAS |✔️ |- |✔️ | +|Netlib |✔️ |- |✔️ | +|Intel MKL|✔️ |✔️ |✔️ | ### For librarian If you creating a library depending on this crate, we encourage you not to link any backend: