Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
RuVector/.github/workflows/ruvllm-native.yml at main · ruvnet/RuVector · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ruvnet
RuVector
Repository navigation
Code
Issues
164
(164)
Pull requests
237
(237)
Discussions
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
RuVector
/
.github
/
workflows
/
ruvllm-native.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
164 lines (143 loc) · 6.19 KB
main
Breadcrumbs
RuVector
/
.github
/
workflows
/
ruvllm-native.yml
Copy path
Top
File metadata and controls
Code
Blame
164 lines (143 loc) · 6.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
name
:
RuvLLM Native Build
on
:
push
:
tags
:
-
'
ruvllm-v*
'
workflow_dispatch
:
inputs
:
publish
:
description
:
'
Publish to npm
'
required
:
false
default
:
'
false
'
type
:
boolean
env
:
CARGO_TERM_COLOR
:
always
jobs
:
build
:
strategy
:
fail-fast
:
false
matrix
:
include
:
-
target
:
x86_64-unknown-linux-gnu
os
:
ubuntu-latest
node_file
:
ruvllm.linux-x64-gnu.node
npm_package
:
ruvllm-linux-x64-gnu
-
target
:
aarch64-unknown-linux-gnu
os
:
ubuntu-latest
node_file
:
ruvllm.linux-arm64-gnu.node
npm_package
:
ruvllm-linux-arm64-gnu
-
target
:
x86_64-apple-darwin
os
:
macos-15-intel
node_file
:
ruvllm.darwin-x64.node
npm_package
:
ruvllm-darwin-x64
-
target
:
aarch64-apple-darwin
os
:
macos-14
node_file
:
ruvllm.darwin-arm64.node
npm_package
:
ruvllm-darwin-arm64
-
target
:
x86_64-pc-windows-msvc
os
:
windows-latest
node_file
:
ruvllm.win32-x64-msvc.node
npm_package
:
ruvllm-win32-x64-msvc
runs-on
:
${{ matrix.os }}
name
:
Build ${{ matrix.target }}
steps
:
-
uses
:
actions/checkout@11d5960a326750d5838078e36cf38b85af677262
-
name
:
Setup Node.js
uses
:
actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with
:
node-version
:
'
20
'
registry-url
:
'
https://registry.npmjs.org
'
-
name
:
Install Rust toolchain
uses
:
dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4
with
:
targets
:
${{ matrix.target }}
-
name
:
Install napi-rs CLI
run
:
npm install -g @napi-rs/cli
-
name
:
Install cross-compilation tools (Linux ARM64)
if
:
matrix.target == 'aarch64-unknown-linux-gnu'
run
:
|
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
-
name
:
Setup cross-compilation env (Linux ARM64)
if
:
matrix.target == 'aarch64-unknown-linux-gnu'
run
:
|
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
echo "CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
echo "CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++" >> $GITHUB_ENV
-
name
:
Build native library with napi
shell
:
bash
run
:
|
cd examples/ruvLLM
# Use cargo directly with --lib to avoid building binaries. `candle` is
# the inference backend: without it loadModel() cannot load a model.
cargo build --release --lib --features napi,candle --target ${{ matrix.target }}
# napi artifacts command to copy the output
napi artifacts --build-output-dir ../../target/${{ matrix.target }}/release ||
true
-
name
:
Copy artifact (Unix)
if
:
runner.os != 'Windows'
shell
:
bash
run
:
|
mkdir -p npm/packages/${{ matrix.npm_package }}
# Try napi output first, then cargo output
if ls examples/ruvLLM/*.node 1>/dev/null 2>&1; then
cp examples/ruvLLM/*.node npm/packages/${{ matrix.npm_package }}/${{ matrix.node_file }}
elif [ "${{ matrix.target }}" = "x86_64-unknown-linux-gnu" ] || [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
cp target/${{ matrix.target }}/release/libruvllm.so npm/packages/${{ matrix.npm_package }}/${{ matrix.node_file }}
else
cp target/${{ matrix.target }}/release/libruvllm.dylib npm/packages/${{ matrix.npm_package }}/${{ matrix.node_file }}
fi
-
name
:
Copy artifact (Windows)
if
:
runner.os == 'Windows'
shell
:
pwsh
run
:
|
New-Item -ItemType Directory -Force -Path npm/packages/${{ matrix.npm_package }}
# Try napi output first, then cargo output
if (Test-Path examples/ruvLLM/*.node) {
Copy-Item examples/ruvLLM/*.node npm/packages/${{ matrix.npm_package }}/${{ matrix.node_file }}
} else {
Copy-Item target/${{ matrix.target }}/release/ruvllm.dll npm/packages/${{ matrix.npm_package }}/${{ matrix.node_file }}
}
-
name
:
Upload artifact
uses
:
actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with
:
name
:
${{ matrix.npm_package }}
path
:
npm/packages/${{ matrix.npm_package }}/${{ matrix.node_file }}
publish
:
needs
:
build
runs-on
:
ubuntu-latest
if
:
startsWith(github.ref, 'refs/tags/ruvllm-v') || github.event.inputs.publish == 'true'
steps
:
-
uses
:
actions/checkout@11d5960a326750d5838078e36cf38b85af677262
-
name
:
Setup Node.js
uses
:
actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with
:
node-version
:
'
20
'
registry-url
:
'
https://registry.npmjs.org
'
-
name
:
Download all artifacts
uses
:
actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
with
:
path
:
artifacts
-
name
:
Copy artifacts to packages
run
:
|
cp artifacts/ruvllm-linux-x64-gnu/ruvllm.linux-x64-gnu.node npm/packages/ruvllm-linux-x64-gnu/
cp artifacts/ruvllm-linux-arm64-gnu/ruvllm.linux-arm64-gnu.node npm/packages/ruvllm-linux-arm64-gnu/
cp artifacts/ruvllm-darwin-x64/ruvllm.darwin-x64.node npm/packages/ruvllm-darwin-x64/
cp artifacts/ruvllm-darwin-arm64/ruvllm.darwin-arm64.node npm/packages/ruvllm-darwin-arm64/
cp artifacts/ruvllm-win32-x64-msvc/ruvllm.win32-x64-msvc.node npm/packages/ruvllm-win32-x64-msvc/
-
name
:
Publish platform packages
env
:
NODE_AUTH_TOKEN
:
${{ secrets.NPM_TOKEN }}
run
:
|
for pkg in ruvllm-linux-x64-gnu ruvllm-linux-arm64-gnu ruvllm-darwin-x64 ruvllm-darwin-arm64 ruvllm-win32-x64-msvc; do
cd npm/packages/$pkg
npm publish --access public ||
true
cd ../../..
done
-
name
:
Build and publish main package
env
:
NODE_AUTH_TOKEN
:
${{ secrets.NPM_TOKEN }}
run
:
|
cd npm/packages/ruvllm
npm install
npm run build
npm publish --access public ||
true
You can’t perform that action at this time.