-
Notifications
You must be signed in to change notification settings - Fork 47
116 lines (109 loc) · 2.99 KB
/
openblas-src.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: openblas-src
on:
push:
branches:
- master
pull_request: {}
workflow_dispatch: {}
jobs:
windows-msvc:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
triple:
- x64-windows
- x64-windows-static
- x64-windows-static-md
steps:
- uses: actions/checkout@v1
- 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 OpenBLAS by vcpkg
run: |
./vcpkg/vcpkg.exe install openblas:${{ matrix.triple }}
- uses: actions-rs/cargo@v1
name: Test features=system
with:
command: test
args: --features=system --manifest-path=openblas-src/Cargo.toml
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
if: ${{ matrix.triple == 'x64-windows' }}
- uses: actions-rs/cargo@v1
name: Test features=system,static
with:
command: test
args: --features=system,static --manifest-path=openblas-src/Cargo.toml
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
if: ${{ matrix.triple == 'x64-windows-static-md' }}
- uses: actions-rs/cargo@v1
name: Test features=system,static with crt-static
with:
command: test
args: --features=system,static --manifest-path=openblas-src/Cargo.toml
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
RUSTFLAGS: "-C target-feature=+crt-static"
if: ${{ matrix.triple == 'x64-windows-static' }}
macos:
runs-on: macos-11
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: >
--features=${{ matrix.feature }}
--manifest-path=openblas-src/Cargo.toml
linux:
runs-on: ubuntu-22.04
container:
image: rust
strategy:
fail-fast: false
matrix:
feature:
- ""
- static
- system
steps:
- uses: actions/checkout@v1
with:
submodules: "recursive"
- name: Install gfortran by apt
run: |
apt update
apt install -y gfortran
- 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: >
--features=${{ matrix.feature }}
--manifest-path=openblas-src/Cargo.toml