18
18
- x64-windows-static
19
19
- x64-windows-static-md
20
20
steps :
21
- - uses : actions/checkout@v1
22
- - uses : actions/cache@v2
21
+ - uses : actions/checkout@v4
22
+ - uses : actions/cache@v4
23
23
with :
24
24
path : ./vcpkg
25
25
key : vcpkg-openblas
@@ -31,30 +31,20 @@ jobs:
31
31
- name : Install OpenBLAS by vcpkg
32
32
run : |
33
33
./vcpkg/vcpkg.exe install openblas:${{ matrix.triple }}
34
-
35
- - uses : actions-rs/cargo@v1
36
- name : Test features=system
37
- with :
38
- command : test
39
- args : --features=system --manifest-path=openblas-src/Cargo.toml
34
+ - name : Test features=system
35
+ run : cargo test --features=system --manifest-path=openblas-src/Cargo.toml
40
36
env :
41
37
VCPKG_ROOT : ${{ github.workspace }}/vcpkg
42
38
if : ${{ matrix.triple == 'x64-windows' }}
43
39
44
- - uses : actions-rs/cargo@v1
45
- name : Test features=system,static
46
- with :
47
- command : test
48
- args : --features=system,static --manifest-path=openblas-src/Cargo.toml
40
+ - name : Test features=system,static
41
+ run : cargo test --features=system,static --manifest-path=openblas-src/Cargo.toml
49
42
env :
50
43
VCPKG_ROOT : ${{ github.workspace }}/vcpkg
51
44
if : ${{ matrix.triple == 'x64-windows-static-md' }}
52
45
53
- - uses : actions-rs/cargo@v1
54
- name : Test features=system,static with crt-static
55
- with :
56
- command : test
57
- args : --features=system,static --manifest-path=openblas-src/Cargo.toml
46
+ - name : Test features=system,static with crt-static
47
+ run : cargo test --features=system,static --manifest-path=openblas-src/Cargo.toml
58
48
env :
59
49
VCPKG_ROOT : ${{ github.workspace }}/vcpkg
60
50
RUSTFLAGS : " -C target-feature=+crt-static"
@@ -70,21 +60,17 @@ jobs:
70
60
- static
71
61
- system
72
62
steps :
73
- - uses : actions/checkout@v1
63
+ - uses : actions/checkout@v4
74
64
with :
75
65
submodules : " recursive"
76
66
- name : Install OpenBLAS by homebrew
77
67
run : |
78
68
brew install openblas
79
69
if : ${{ contains(matrix.feature, 'system') }}
80
- - uses : actions-rs/cargo@v1
81
- with :
82
- command : test
83
- args : >
84
- --features=${{ matrix.feature }}
85
- --manifest-path=openblas-src/Cargo.toml
70
+ - name : Test features=${{ matrix.feature }}
71
+ run : cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
86
72
87
- linux :
73
+ x86_64-unknown- linux-gnu :
88
74
runs-on : ubuntu-22.04
89
75
container :
90
76
image : rust
96
82
- static
97
83
- system
98
84
steps :
99
- - uses : actions/checkout@v1
85
+ - uses : actions/checkout@v4
100
86
with :
101
87
submodules : " recursive"
102
88
- name : Install gfortran by apt
@@ -108,9 +94,31 @@ jobs:
108
94
apt update
109
95
apt install -y libopenblas-dev
110
96
if : ${{ contains(matrix.feature, 'system') }}
111
- - uses : actions-rs/cargo@v1
97
+ - name : Test features=${{ matrix.feature }}
98
+ run : cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
99
+
100
+ cross :
101
+ name : ${{matrix.target}} (${{matrix.feature}})
102
+ runs-on : ubuntu-latest
103
+ strategy :
104
+ fail-fast : false
105
+ matrix :
106
+ feature :
107
+ - " "
108
+ - static
109
+ - system
110
+ target :
111
+ - aarch64-unknown-linux-gnu
112
+ - armv7-unknown-linux-gnueabihf
113
+ steps :
114
+ - uses : actions/checkout@v4
115
+ - name : Install toolchain
116
+ uses : dtolnay/rust-toolchain@stable
117
+ with :
118
+ target : ${{matrix.target}}
119
+ - name : Install Cross
120
+ uses : taiki-e/install-action@v2
112
121
with :
113
- command : test
114
- args : >
115
- --features=${{ matrix.feature }}
116
- --manifest-path=openblas-src/Cargo.toml
122
+ tool : cross
123
+ - name : Test features=${{ matrix.feature }}
124
+ run : cross test --target ${{matrix.target}} --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
0 commit comments