mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-22 16:49:37 +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
|
asset_name: dcr-aarch64-unknown-linux-musl
|
||||||
|
|
||||||
# MacOS
|
# MacOS
|
||||||
# x86_64 (Intel)
|
# x86_64 (Intel Mac, macOS 10.12+)
|
||||||
- os: macos-15-intel
|
- os: macos-15-intel
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
asset_name: dcr-x86_64-apple-darwin
|
asset_name: dcr-x86_64-apple-darwin
|
||||||
|
|
||||||
# ARM64 (Apple Silicon)
|
# ARM64 (Apple Silicon Mac, macOS 11+)
|
||||||
- os: macos-15
|
- os: macos-latest
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
asset_name: dcr-aarch64-apple-darwin
|
asset_name: dcr-aarch64-apple-darwin
|
||||||
|
|
||||||
@@ -114,6 +114,12 @@ jobs:
|
|||||||
name: release-notes
|
name: release-notes
|
||||||
path: .github
|
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
|
- name: Setup Rust
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ pub fn get_index_path() -> PathBuf {
|
|||||||
pub fn resolve_package_from_registry(name: &str) -> Result<JsonValue, String> {
|
pub fn resolve_package_from_registry(name: &str) -> Result<JsonValue, String> {
|
||||||
let config = get_registry_config().ok_or("No registry config found")?;
|
let config = get_registry_config().ok_or("No registry config found")?;
|
||||||
let mut registries: Vec<(&String, &Registry)> = config.registry.iter().collect();
|
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 {
|
for (_name_reg, _reg) in registries {
|
||||||
let index_path = get_index_path();
|
let index_path = get_index_path();
|
||||||
|
|||||||
Reference in New Issue
Block a user