Skip to content

Commit

Permalink
Fix MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirreke committed Dec 16, 2024
1 parent e309bd5 commit bda43b2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/openblas-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,16 @@ jobs:
tool: cross
- name: Test features=${{ matrix.feature }}
run: cross test --target ${{matrix.target}} --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
msrv-test:
name: MSRV test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install OpenBLAS by apt
run: |
apt update
apt install -y libopenblas-dev
- name: Install toolchain
uses: dtolnay/[email protected]
- name: cargo test
run: cargo check --manifest-path=openblas-src/Cargo.toml --features=system
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ members = [
"openblas-src",
"openblas-build",
]

[workspace.package]
rust-version = "1.71.1"
3 changes: 2 additions & 1 deletion openblas-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ homepage = "https://github.com/blas-lapack-rs/openblas-src"
repository = "https://github.com/blas-lapack-rs/openblas-src"
readme = "../README.md"
exclude = ["test_build/"]
rust-version = "1.71.1"

[dependencies]
anyhow = "1.0.68"
cc = "1.0"
flate2 = "1.0.25"
tar = "0.4.38"
thiserror = "2.0"
ureq = { version = "2.5.0", default-features = false, features = [
ureq = { version = "2.8", default-features = false, features = [
"native-certs",
"native-tls",
"gzip",
Expand Down
1 change: 1 addition & 0 deletions openblas-src/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ categories = ["science"]
keywords = ["linear-algebra"]
build = "build.rs"
links = "openblas"
rust-version = "1.71.1"

[features]
default = ["cblas", "lapacke"]
Expand Down
2 changes: 1 addition & 1 deletion openblas-src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ fn build() {
cfg.compilers.ranlib = env::var("OPENBLAS_RANLIB").ok();

let output = if feature_enabled("cache") {
use std::hash::*;
use std::{collections::hash_map::DefaultHasher, hash::{Hash, Hasher}};
// Build OpenBLAS on user's data directory.
// See https://docs.rs/dirs/5.0.1/dirs/fn.data_dir.html
//
Expand Down

0 comments on commit bda43b2

Please sign in to comment.