Skip to content

Commit

Permalink
🔧 refactor(release.yml): remove aarch64-pc-windows-msvc target from b…
Browse files Browse the repository at this point in the history
…uild matrix due to compatibility issues

✨ feat(release.yml): add universal-apple-darwin target to support universal binaries on macOS

🔨 refactor(auth.rs): remove unnecessary Arc import and use fully qualified name instead for better code readability
  • Loading branch information
wenxuanjun committed May 11, 2024
1 parent a21b708 commit 3763b5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
features: rustls
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-pc-windows-msvc
os: windows-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: universal-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 1 addition & 2 deletions src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use std::collections::HashMap;
use std::error::Error;
use std::net::Ipv4Addr;
use std::str::FromStr;
use std::sync::Arc;
use thiserror::Error;
use ureq::{Agent, AgentBuilder};
use url::Url;
Expand Down Expand Up @@ -46,7 +45,7 @@ impl Authenticator {
let client = {
let builder = AgentBuilder::new();
#[cfg(feature = "native-tls")]
let builder = builder.tls_connector(Arc::new(TlsConnector::new()?));
let builder = builder.tls_connector(std::sync::Arc::new(TlsConnector::new()?));
builder.build()
};
let ip_addresses = Self::get_ip_addresses()?;
Expand Down

0 comments on commit 3763b5b

Please sign in to comment.