3 Commits

2 changed files with 10 additions and 4 deletions

View File

@@ -65,13 +65,13 @@ jobs:
asset_name: dcr-aarch64-unknown-linux-musl
# MacOS
# x86_64 (Intel)
# x86_64 (Intel Mac, macOS 10.12+)
- os: macos-15-intel
target: x86_64-apple-darwin
asset_name: dcr-x86_64-apple-darwin
# ARM64 (Apple Silicon)
- os: macos-15
# ARM64 (Apple Silicon Mac, macOS 11+)
- os: macos-latest
target: aarch64-apple-darwin
asset_name: dcr-aarch64-apple-darwin
@@ -114,6 +114,12 @@ jobs:
name: release-notes
path: .github
- name: Install Linux Cross Compilation Tools
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu musl-tools
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:

View File

@@ -38,7 +38,7 @@ pub fn get_index_path() -> PathBuf {
pub fn resolve_package_from_registry(name: &str) -> Result<JsonValue, String> {
let config = get_registry_config().ok_or("No registry config found")?;
let mut registries: Vec<(&String, &Registry)> = config.registry.iter().collect();
registries.sort_by(|a, b| b.1.priority.cmp(&a.1.priority));
registries.sort_by_key(|b| std::cmp::Reverse(b.1.priority));
for (_name_reg, _reg) in registries {
let index_path = get_index_path();