Skip to content

Commit 6079d1c

Browse files
committed
GitHub Action setting for OpenBLAS
1 parent 848fe37 commit 6079d1c

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

.github/workflows/openblas.yml

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,50 @@ on:
88

99
jobs:
1010
linux:
11+
runs-on: ubuntu-18.04
12+
container:
13+
image: rust
1114
strategy:
1215
fail-fast: false
1316
matrix:
1417
feature:
15-
- system
1618
- static
17-
runs-on: ubuntu-18.04
19+
- system
1820
steps:
1921
- uses: actions/checkout@v1
2022
- name: apt install gfortran
2123
run: |
22-
sudo apt update
23-
sudo apt install -y gfortran
24-
- name: apt install openblas
24+
apt update
25+
apt install -y gfortran
26+
- name: Install OpenBLAS by apt
27+
run: |
28+
apt update
29+
apt install -y libopenblas-dev
30+
if: ${{ contains(matrix.feature, 'system') }}
31+
- uses: actions-rs/cargo@v1
32+
with:
33+
command: test
34+
args: >
35+
--manifest-path=ndarray-linalg/Cargo.toml
36+
--no-default-features
37+
--features=openblas-${{ matrix.feature }}
38+
39+
macos:
40+
runs-on: macos-10.15
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
feature:
45+
- static
46+
- system
47+
steps:
48+
- uses: actions/checkout@v1
49+
with:
50+
submodules: 'recursive'
51+
- name: Install OpenBLAS by homebrew
2552
run: |
26-
sudo apt update
27-
sudo apt install -y libopenblas-dev
28-
if: ${{ matrix.feature == 'system' }}
53+
brew install openblas
54+
if: ${{ contains(matrix.feature, 'system') }}
2955
- uses: actions-rs/cargo@v1
3056
with:
3157
command: test

0 commit comments

Comments
 (0)