Skip to content

Commit

Permalink
feat: 0.8.28
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Oct 14, 2024
1 parent 764a8ac commit 60a2938
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions crates/svm-rs/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ mod tests {
use rand::seq::SliceRandom;

#[allow(unused)]
const LATEST: Version = Version::new(0, 8, 27);
const LATEST: Version = Version::new(0, 8, 28);

#[tokio::test]
#[serial_test::serial]
Expand Down Expand Up @@ -365,8 +365,11 @@ mod tests {
async fn can_install_latest_native_apple_silicon() {
let solc = install(&LATEST).await.unwrap();
let output = Command::new(solc).arg("--version").output().unwrap();
let version = String::from_utf8_lossy(&output.stdout);
assert!(version.contains("0.8.27"), "{}", version);
let version_output = String::from_utf8_lossy(&output.stdout);
assert!(
version_output.contains(&LATEST.to_string()),
"{version_output}"
);
}

// ensures we can download the latest native solc for linux aarch64
Expand Down
6 changes: 3 additions & 3 deletions crates/svm-rs/src/releases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ static OLD_SOLC_RELEASES: LazyLock<Releases> = LazyLock::new(|| {
const LINUX_AARCH64_MIN: Version = Version::new(0, 5, 0);

static LINUX_AARCH64_URL_PREFIX: &str =
"https://raw.githubusercontent.com/nikitastupin/solc/4a9cdcdba32543cbf7ffab7b364949ec307b838e/linux/aarch64";
"https://raw.githubusercontent.com/nikitastupin/solc/77e67befc2c7b8f328c543aa9e3ff4b34bde9b77/linux/aarch64";

static LINUX_AARCH64_RELEASES_URL: &str =
"https://raw.githubusercontent.com/nikitastupin/solc/4a9cdcdba32543cbf7ffab7b364949ec307b838e/linux/aarch64/list.json";
"https://raw.githubusercontent.com/nikitastupin/solc/77e67befc2c7b8f328c543aa9e3ff4b34bde9b77/linux/aarch64/list.json";

// NOTE: Since version 0.8.24, universal macosx releases are available: https://binaries.soliditylang.org/macosx-amd64/list.json
const MACOS_AARCH64_NATIVE: Version = Version::new(0, 8, 5);
Expand Down Expand Up @@ -299,7 +299,7 @@ mod tests {
assert_eq!(
artifact_url(Platform::LinuxAarch64, &version, artifact).unwrap(),
Url::parse(&format!(
"https://raw.githubusercontent.com/nikitastupin/solc/4a9cdcdba32543cbf7ffab7b364949ec307b838e/linux/aarch64/{artifact}"
"https://raw.githubusercontent.com/nikitastupin/solc/77e67befc2c7b8f328c543aa9e3ff4b34bde9b77/linux/aarch64/{artifact}"
))
.unwrap(),
)
Expand Down

0 comments on commit 60a2938

Please sign in to comment.