Skip to content

Commit b378d50

Browse files
feat(ci): support windows pre-built binaries (#100)
1 parent dd1e4b4 commit b378d50

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/release.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
target: aarch64-apple-darwin
3131
artifact_name: target/aarch64-apple-darwin/release/libblink_cmp_fuzzy.dylib
3232

33+
# Windows builds
34+
- os: windows-latest
35+
target: x86_64-pc-windows-msvc
36+
artifact_name: target/x86_64-pc-windows-msvc/release/blink_cmp_fuzzy.dll
37+
3338
steps:
3439
- uses: actions/checkout@v4
3540

lua/blink/cmp/fuzzy/download.lua

+3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ function download.get_system_triple()
134134
if jit.arch:lower():match('arm') then return 'aarch64-apple-darwin' end
135135
if jit.arch:lower():match('x64') then return 'x86_64-apple-darwin' end
136136
end
137+
if jit.os:lower() == 'windows' then
138+
if jit.arch:lower():match('x64') then return 'x86_64-pc-windows-msvc' end
139+
end
137140
if jit.os:lower() ~= 'windows' then
138141
if jit.arch:lower():match('arm') then return 'aarch64-unknown-linux-gnu' end
139142
if jit.arch:lower():match('x64') then return 'x86_64-unknown-linux-gnu' end

0 commit comments

Comments
 (0)