Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3de4460

Browse filesBrowse files
authored
update: ci
1 parent a2854b2 commit 3de4460
Copy full SHA for 3de4460

File tree

Expand file treeCollapse file tree

3 files changed

+27
-10
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+27
-10
lines changed

‎.github/workflows/test.yaml

Copy file name to clipboardExpand all lines: .github/workflows/test.yaml
+26-7Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.8"]
14+
python-version: [ "3.8" ]
1515

1616
steps:
1717
- uses: actions/checkout@v4
@@ -21,17 +21,36 @@ jobs:
2121
uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ matrix.python-version }}
24+
2425
- name: Install dependencies
2526
run: |
2627
python3 -m pip install --upgrade pip
2728
python3 -m pip install .[all] -v
2829
python3 -m pip install pyinstaller
30+
2931
- name: Build package
3032
run: pyinstaller llama-server.spec
31-
- name: upload artifact
32-
uses: actions/upload-artifact@v3
33+
34+
- name: Login to a private Container registry
35+
uses: docker/login-action@v3
36+
with:
37+
registry: ${{ secrets.DOCKER_REGISTRY }}
38+
username: ${{ secrets.DOCKER_ACCOUNT }}
39+
password: ${{ secrets.DOCKER_PASSWORD }}
40+
41+
- name: Extract metadata (tags, labels) for Docker
42+
id: meta
43+
uses: docker/metadata-action@v5
44+
with:
45+
images: |
46+
${{ secrets.DOCKER_REGISTRY }}/${{ github.repository }}
47+
tags: |
48+
type=raw,value=latest
49+
50+
- name: Build and push Docker image
51+
uses: docker/build-push-action@v5
3352
with:
34-
name: llama-server
35-
path: |
36-
dist/*
37-
53+
context: .
54+
push: true
55+
tags: ${{ steps.meta.outputs.tags }}
56+
labels: ${{ steps.meta.outputs.labels }}

‎llama-server.spec

Copy file name to clipboardExpand all lines: llama-server.spec
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ a = Analysis(
88
['llama_cpp/server/__main__.py'],
99
pathex=[],
1010
binaries=[],
11-
datas=[('/home/runner/work/llama-cpp-python/llama-cpp-python/llama_cpp/libllama.so','.')],
11+
datas=[('/home/runner/work/llama-cpp-python/llama-cpp-python/llama_cpp/libllama.so','./llama_cpp/')],
1212
hiddenimports=[],
1313
hookspath=[],
1414
hooksconfig={},

‎llama_cpp/llama_cpp.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
def _load_shared_library(lib_base_name: str):
2525
# Construct the paths to the possible shared library names
2626
_base_path = pathlib.Path(os.path.abspath(os.path.dirname(__file__)))
27-
print("------------------------------------------------------------")
28-
print(_base_path)
2927
# Searching for the library in the current directory under the name "libllama" (default name
3028
# for llamacpp) and "llama" (default name for this repo)
3129
_lib_paths: List[pathlib.Path] = []

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.