Skip to content

Commit 2f055bb

Browse files
authored
Merge pull request #254 from rust-ndarray/openblas-src-ci
GitHub Action setting for OpenBLAS
2 parents 848fe37 + 5cee032 commit 2f055bb

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/openblas.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,26 @@ 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
2527
run: |
26-
sudo apt update
27-
sudo apt install -y libopenblas-dev
28-
if: ${{ matrix.feature == 'system' }}
28+
apt update
29+
apt install -y libopenblas-dev
30+
if: ${{ contains(matrix.feature, 'system') }}
2931
- uses: actions-rs/cargo@v1
3032
with:
3133
command: test

0 commit comments

Comments
 (0)