mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 23:09:36 +00:00
Compare commits
3 Commits
0193834bfd
...
v0.6.5
| Author | SHA1 | Date | |
|---|---|---|---|
| 2de836a421 | |||
| ed85f801e9 | |||
| 9d8dcda366 |
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user