File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,16 +44,23 @@ jobs:
4444 with :
4545 node-version : " 20"
4646
47- - name : Build node-llama-cpp binary
47+ - name : Install build tools
4848 run : |
49- npm install node-llama-cpp
50- npx node-llama-cpp download
49+ sudo apt-get update
50+ sudo apt-get install -y gcc g++ cmake make
51+
52+ - name : Install node-llama-cpp
53+ run : npm install node-llama-cpp
54+
55+ - name : Download llama.cpp source and build
56+ run : |
57+ npx node-llama-cpp source download
58+ npx node-llama-cpp source build --no-gpu
5159
5260 - name : Pack binary
5361 run : |
5462 tar -czf node-llama-linux-x64.tar.gz \
55- node_modules/node-llama-cpp/build \
56- node_modules/node-llama-cpp/bins
63+ node_modules/node-llama-cpp/build
5764
5865 - name : Upload node artifact
5966 uses : actions/upload-artifact@v4
7279 with :
7380 path : ./artifacts
7481
75- - name : Show artifacts
76- run : find ./artifacts -type f
77-
7882 - name : Publish to GitHub Release
7983 uses : softprops/action-gh-release@v2
8084 with :
You can’t perform that action at this time.
0 commit comments