Skip to content

Commit

Permalink
Update OpenBLAS CI based on blas-lapack-rs/openblas-src#40
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Sep 7, 2020
1 parent 4f48490 commit 0235750
Showing 1 changed file with 67 additions and 7 deletions.
74 changes: 67 additions & 7 deletions .github/workflows/openblas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,58 @@ on:
pull_request: {}

jobs:

linux:
runs-on: ubuntu-18.04
container:
image: rust
strategy:
fail-fast: false
matrix:
feature:
- static
- system
steps:
- uses: actions/checkout@v1
- name: Install OpenBLAS by apt
run: |
apt update
apt install -y libopenblas-dev
if: ${{ contains(matrix.feature, 'system') }}
- uses: actions-rs/cargo@v1
with:
command: test
args: >
--manifest-path=ndarray-linalg/Cargo.toml
--no-default-features
--features=openblas-${{ matrix.feature }}
windows-msvc:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
feature:
- system
- static
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: apt install gfortran
- uses: actions/cache@v2
with:
path: ./vcpkg
key: vcpkg-openblas
- name: Install vcpkg
run: |
git clone https://github.com/Microsoft/vcpkg.git --depth 1
cd vcpkg
./bootstrap-vcpkg.bat
- name: Install static OpenBLAS by vcpkg
run: |
sudo apt update
sudo apt install -y gfortran
- name: apt install openblas
./vcpkg/vcpkg.exe install openblas:x64-windows-static
if: ${{ matrix.feature == 'static' }}
- name: Install OpenBLAS by vcpkg
run: |
sudo apt update
sudo apt install -y libopenblas-dev
./vcpkg/vcpkg.exe install openblas:x64-windows
if: ${{ matrix.feature == 'system' }}
- uses: actions-rs/cargo@v1
with:
Expand All @@ -33,3 +67,29 @@ jobs:
--manifest-path=ndarray-linalg/Cargo.toml
--no-default-features
--features=openblas-${{ matrix.feature }}
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg

macos:
runs-on: macos-10.15
strategy:
fail-fast: false
matrix:
feature:
- static
- system
steps:
- uses: actions/checkout@v1
with:
submodules: 'recursive'
- name: Install OpenBLAS by homebrew
run: |
brew install openblas
if: ${{ contains(matrix.feature, 'system') }}
- uses: actions-rs/cargo@v1
with:
command: test
args: >
--manifest-path=ndarray-linalg/Cargo.toml
--no-default-features
--features=openblas-${{ matrix.feature }}

0 comments on commit 0235750

Please sign in to comment.