Skip to content

Commit ff3b60d

Browse files
committed
bug: fix linking issue on windows ci + add release metadata to build
1 parent e25ab80 commit ff3b60d

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
uses: Swatinem/rust-cache@v2
3030

3131
- name: Build LSP Binary
32+
env:
33+
APP_VERSION: ${{ github.ref_name }}
3234
run: cargo build --release -p swls
3335

3436
- name: Rename binary for release

swls/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
fn main() {
2+
#[cfg(target_os = "windows")]
3+
{
4+
println!("cargo:rustc-link-lib=advapi32");
5+
println!("cargo:rustc-link-lib=userenv");
6+
println!("cargo:rustc-link-lib=crypt32");
7+
}
8+
29
vergen::EmitBuilder::builder()
310
.git_sha(true)
411
.git_describe(true, true, None) // includes tag if present

0 commit comments

Comments
 (0)