Skip to content

Commit 39d37a0

Browse files
authored
Merge pull request #137 from Dirreke/bump-openblas
Bump ureq from 2 to 3. Bump openblas from 0.3.28 to 0.3.30
2 parents 04e9b02 + 48fbb9a commit 39d37a0

File tree

6 files changed

+34
-20
lines changed

6 files changed

+34
-20
lines changed

.github/workflows/openblas-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
sudo apt update
3434
sudo apt install -y gfortran
3535
- name: Common minor tests
36-
run: cargo test --manifest-path=openblas-build/Cargo.toml
36+
run: cargo test -p openblas-build
3737
- name: Build test
38-
run: cargo test ${{ matrix.test_target }} --manifest-path=openblas-build/Cargo.toml -- --ignored
38+
run: cargo test ${{ matrix.test_target }} -p openblas-build -- --ignored

.github/workflows/openblas-src.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ jobs:
4242
run: |
4343
./vcpkg/vcpkg.exe install openblas:${{ matrix.triple }}
4444
- name: Test features=system
45-
run: cargo test --features=system --manifest-path=openblas-src/Cargo.toml
45+
run: cargo test --features=system -p openblas-src
4646
env:
4747
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
4848
if: ${{ matrix.triple == 'x64-windows' }}
4949

5050
- name: Test features=system,static
51-
run: cargo test --features=system,static --manifest-path=openblas-src/Cargo.toml
51+
run: cargo test --features=system,static -p openblas-src
5252
env:
5353
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
5454
if: ${{ matrix.triple == 'x64-windows-static-md' }}
5555

5656
- name: Test features=system,static with crt-static
57-
run: cargo test --features=system,static --manifest-path=openblas-src/Cargo.toml
57+
run: cargo test --features=system,static -p openblas-src
5858
env:
5959
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
6060
RUSTFLAGS: "-C target-feature=+crt-static"
@@ -78,7 +78,7 @@ jobs:
7878
brew install openblas
7979
if: ${{ contains(matrix.feature, 'system') }}
8080
- name: Test features=${{ matrix.feature }}
81-
run: cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
81+
run: cargo test --features=${{ matrix.feature }} -p openblas-src
8282

8383
x86_64-unknown-linux-gnu:
8484
runs-on: ubuntu-22.04
@@ -103,7 +103,7 @@ jobs:
103103
sudo apt install -y libopenblas-dev
104104
if: ${{ contains(matrix.feature, 'system') }}
105105
- name: Test features=${{ matrix.feature }}
106-
run: cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
106+
run: cargo test --features=${{ matrix.feature }} -p openblas-src
107107

108108
cross:
109109
name: ${{matrix.target}} (${{matrix.feature}})
@@ -139,7 +139,9 @@ jobs:
139139
run: |
140140
sudo apt update
141141
sudo apt install -y libopenblas-dev
142+
- name: ensure dependencies
143+
run: CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS="fallback" cargo update
142144
- name: Install toolchain
143145
uses: dtolnay/rust-toolchain@1.71
144-
- name: cargo test
145-
run: cargo check --manifest-path=openblas-src/Cargo.toml --features=system
146+
- name: Test MSRV
147+
run: cargo check -p openblas-src --locked --features=system

openblas-build/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ cc = "1.0"
1818
flate2 = "1.0.25"
1919
tar = "0.4.38"
2020
thiserror = "2.0"
21-
ureq = { version = "2.8", default-features = false, features = [
22-
"native-certs",
21+
ureq = { version = "3.0", default-features = false, features = [
2322
"native-tls",
2423
"gzip",
2524
] }

openblas-build/src/build.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,11 @@ pub enum Target {
137137

138138
// LOONGARCH64:
139139
LOONGSONGENERIC,
140-
LOONGSON3R5,
141140
LOONGSON2K1000,
141+
LOONGSON3R5,
142+
LA64_GENERIC,
143+
LA264,
144+
LA464,
142145

143146
// Elbrus E2000:
144147
E2K,
@@ -280,8 +283,11 @@ impl FromStr for Target {
280283

281284
// LOONGARCH64:
282285
"loongsongeneric" => Self::LOONGSONGENERIC,
283-
"longson3r5" => Self::LOONGSON3R5,
284286
"longson2k1000" => Self::LOONGSON2K1000,
287+
"longson3r5" => Self::LOONGSON3R5,
288+
"la64_generic" => Self::LA64_GENERIC,
289+
"la264" => Self::LA264,
290+
"la464" => Self::LA464,
285291

286292
// Elbrus E2000:
287293
"e2k" => Self::E2K,

openblas-build/src/download.rs

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use anyhow::Result;
22
use std::path::{Path, PathBuf};
3+
use ureq::{
4+
config::Config,
5+
tls::{TlsConfig, TlsProvider},
6+
};
37

4-
const OPENBLAS_VERSION: &str = "0.3.28";
8+
const OPENBLAS_VERSION: &str = "0.3.30";
59

610
pub fn openblas_source_url() -> String {
711
format!(
@@ -16,6 +20,7 @@ pub fn download(out_dir: &Path) -> Result<PathBuf> {
1620
let buf = get_agent()
1721
.get(&openblas_source_url())
1822
.call()?
23+
.into_body()
1924
.into_reader();
2025
let gz_stream = flate2::read::GzDecoder::new(buf);
2126
let mut ar = tar::Archive::new(gz_stream);
@@ -26,10 +31,12 @@ pub fn download(out_dir: &Path) -> Result<PathBuf> {
2631
}
2732

2833
fn get_agent() -> ureq::Agent {
29-
ureq::AgentBuilder::new()
30-
.tls_connector(std::sync::Arc::new(
31-
native_tls::TlsConnector::new().expect("failed to create TLS connector"),
32-
))
33-
.try_proxy_from_env(true)
34+
Config::builder()
35+
.tls_config(
36+
TlsConfig::builder()
37+
.provider(TlsProvider::NativeTls)
38+
.build(),
39+
)
3440
.build()
41+
.new_agent()
3542
}

openblas-src/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ libc = "0.2"
3838

3939
[build-dependencies]
4040
pkg-config = "0.3.30"
41-
dirs = "5.0.1"
41+
dirs = "6.0.0"
4242
openblas-build = { version = "0.10.10", path = "../openblas-build" }
4343

4444
[target.'cfg(target_os="windows")'.build-dependencies]

0 commit comments

Comments
 (0)