File tree Expand file tree Collapse file tree 3 files changed +27
-10
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +27
-10
lines changed
Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
strategy :
13
13
matrix :
14
- python-version : ["3.8"]
14
+ python-version : [ "3.8" ]
15
15
16
16
steps :
17
17
- uses : actions/checkout@v4
@@ -21,17 +21,36 @@ jobs:
21
21
uses : actions/setup-python@v4
22
22
with :
23
23
python-version : ${{ matrix.python-version }}
24
+
24
25
- name : Install dependencies
25
26
run : |
26
27
python3 -m pip install --upgrade pip
27
28
python3 -m pip install .[all] -v
28
29
python3 -m pip install pyinstaller
30
+
29
31
- name : Build package
30
32
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
33
52
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 }}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ a = Analysis(
8
8
['llama_cpp/server/__main__.py' ],
9
9
pathex = [],
10
10
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/ ' )],
12
12
hiddenimports = [],
13
13
hookspath = [],
14
14
hooksconfig = {},
Original file line number Diff line number Diff line change 24
24
def _load_shared_library (lib_base_name : str ):
25
25
# Construct the paths to the possible shared library names
26
26
_base_path = pathlib .Path (os .path .abspath (os .path .dirname (__file__ )))
27
- print ("------------------------------------------------------------" )
28
- print (_base_path )
29
27
# Searching for the library in the current directory under the name "libllama" (default name
30
28
# for llamacpp) and "llama" (default name for this repo)
31
29
_lib_paths : List [pathlib .Path ] = []
You can’t perform that action at this time.
0 commit comments