Skip to content

Commit 20fb113

Browse files
Update build-llama-wheel.yml
1 parent 7e435c4 commit 20fb113

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/build-llama-wheel.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff 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
@@ -72,9 +79,6 @@ jobs:
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:

0 commit comments

Comments
 (0)