mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Use x86_64-unknown-linux-gnu for releases
This commit is contained in:
parent
5671bacfa6
commit
77de40192e
2 changed files with 3 additions and 6 deletions
1
.github/workflows/release.yaml
vendored
1
.github/workflows/release.yaml
vendored
|
@ -39,7 +39,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
profile: minimal
|
profile: minimal
|
||||||
target: x86_64-unknown-linux-musl
|
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Install Nodejs
|
- name: Install Nodejs
|
||||||
|
|
|
@ -50,21 +50,19 @@ fn dist_server(nightly: bool) -> Result<()> {
|
||||||
if cfg!(target_os = "linux") {
|
if cfg!(target_os = "linux") {
|
||||||
std::env::set_var("CC", "clang");
|
std::env::set_var("CC", "clang");
|
||||||
run!(
|
run!(
|
||||||
"cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release
|
"cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release"
|
||||||
--target x86_64-unknown-linux-musl
|
|
||||||
"
|
|
||||||
// We'd want to add, but that requires setting the right linker somehow
|
// We'd want to add, but that requires setting the right linker somehow
|
||||||
// --features=jemalloc
|
// --features=jemalloc
|
||||||
)?;
|
)?;
|
||||||
if !nightly {
|
if !nightly {
|
||||||
run!("strip ./target/x86_64-unknown-linux-musl/release/rust-analyzer")?;
|
run!("strip ./target/release/rust-analyzer")?;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
run!("cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release")?;
|
run!("cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release")?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let (src, dst) = if cfg!(target_os = "linux") {
|
let (src, dst) = if cfg!(target_os = "linux") {
|
||||||
("./target/x86_64-unknown-linux-musl/release/rust-analyzer", "./dist/rust-analyzer-linux")
|
("./target/release/rust-analyzer", "./dist/rust-analyzer-linux")
|
||||||
} else if cfg!(target_os = "windows") {
|
} else if cfg!(target_os = "windows") {
|
||||||
("./target/release/rust-analyzer.exe", "./dist/rust-analyzer-windows.exe")
|
("./target/release/rust-analyzer.exe", "./dist/rust-analyzer-windows.exe")
|
||||||
} else if cfg!(target_os = "macos") {
|
} else if cfg!(target_os = "macos") {
|
||||||
|
|
Loading…
Reference in a new issue