File tree 6 files changed +31
-14
lines changed
6 files changed +31
-14
lines changed Original file line number Diff line number Diff line change 22
22
- build_no_lapacke
23
23
- build_no_shared
24
24
- build_openmp
25
- container :
26
- image : rust
27
25
env :
28
26
RUST_BACKTRACE : 1
29
27
steps :
32
30
submodules : " recursive"
33
31
- name : Install gfortran by apt
34
32
run : |
35
- apt update
36
- apt install -y gfortran
33
+ sudo apt update
34
+ sudo apt install -y gfortran
37
35
- name : Common minor tests
38
36
run : cargo test --manifest-path=openblas-build/Cargo.toml
39
37
- name : Build test
Original file line number Diff line number Diff line change 19
19
20
20
jobs :
21
21
windows-msvc :
22
- runs-on : windows-2019
22
+ runs-on : windows-2022
23
23
strategy :
24
24
fail-fast : false
25
25
matrix :
82
82
83
83
x86_64-unknown-linux-gnu :
84
84
runs-on : ubuntu-22.04
85
- container :
86
- image : rust
87
85
strategy :
88
86
fail-fast : false
89
87
matrix :
@@ -97,19 +95,19 @@ jobs:
97
95
submodules : " recursive"
98
96
- name : Install gfortran by apt
99
97
run : |
100
- apt update
101
- apt install -y gfortran
98
+ sudo apt update
99
+ sudo apt install -y gfortran
102
100
- name : Install OpenBLAS by apt
103
101
run : |
104
- apt update
105
- apt install -y libopenblas-dev
102
+ sudo apt update
103
+ sudo apt install -y libopenblas-dev
106
104
if : ${{ contains(matrix.feature, 'system') }}
107
105
- name : Test features=${{ matrix.feature }}
108
106
run : cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
109
107
110
108
cross :
111
109
name : ${{matrix.target}} (${{matrix.feature}})
112
- runs-on : ubuntu-latest
110
+ runs-on : ubuntu-22.04
113
111
strategy :
114
112
fail-fast : false
115
113
matrix :
@@ -132,3 +130,16 @@ jobs:
132
130
tool : cross
133
131
- name : Test features=${{ matrix.feature }}
134
132
run : cross test --target ${{matrix.target}} --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
133
+ msrv-test :
134
+ name : MSRV test
135
+ runs-on : ubuntu-22.04
136
+ steps :
137
+ - uses : actions/checkout@v4
138
+ - name : Install OpenBLAS by apt
139
+ run : |
140
+ sudo apt update
141
+ sudo apt install -y libopenblas-dev
142
+ - name : Install toolchain
143
+
144
+ - name : cargo test
145
+ run : cargo check --manifest-path=openblas-src/Cargo.toml --features=system
Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ members = [
3
3
" openblas-src" ,
4
4
" openblas-build" ,
5
5
]
6
+
7
+ [workspace .package ]
8
+ rust-version = " 1.71.1"
Original file line number Diff line number Diff line change @@ -10,14 +10,15 @@ homepage = "https://github.com/blas-lapack-rs/openblas-src"
10
10
repository = " https://github.com/blas-lapack-rs/openblas-src"
11
11
readme = " ../README.md"
12
12
exclude = [" test_build/" ]
13
+ rust-version = " 1.71.1"
13
14
14
15
[dependencies ]
15
16
anyhow = " 1.0.68"
16
17
cc = " 1.0"
17
18
flate2 = " 1.0.25"
18
19
tar = " 0.4.38"
19
20
thiserror = " 2.0"
20
- ureq = { version = " 2.5.0 " , default-features = false , features = [
21
+ ureq = { version = " 2.8 " , default-features = false , features = [
21
22
" native-certs" ,
22
23
" native-tls" ,
23
24
" gzip" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ categories = ["science"]
22
22
keywords = [" linear-algebra" ]
23
23
build = " build.rs"
24
24
links = " openblas"
25
+ rust-version = " 1.71.1"
25
26
26
27
[features ]
27
28
default = [" cblas" , " lapacke" ]
Original file line number Diff line number Diff line change @@ -157,7 +157,10 @@ fn build() {
157
157
cfg. compilers . ranlib = env:: var ( "OPENBLAS_RANLIB" ) . ok ( ) ;
158
158
159
159
let output = if feature_enabled ( "cache" ) {
160
- use std:: hash:: * ;
160
+ use std:: {
161
+ collections:: hash_map:: DefaultHasher ,
162
+ hash:: { Hash , Hasher } ,
163
+ } ;
161
164
// Build OpenBLAS on user's data directory.
162
165
// See https://docs.rs/dirs/5.0.1/dirs/fn.data_dir.html
163
166
//
You can’t perform that action at this time.
0 commit comments