Skip to content

Commit eda54bd

Browse files
authored
Update llamacpp.yaml
1 parent 7406aa1 commit eda54bd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/llamacpp.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,30 @@ jobs:
4343
cd llama.cpp
4444
cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a
4545
cmake --build build
46+
47+
ubuntu-unit-tests:
48+
49+
runs-on: ubuntu-latest
50+
51+
container:
52+
image: ascendai/cann
53+
54+
steps:
55+
- uses: actions/checkout@v4
56+
57+
- name: Install llamacpp
58+
uses: nick-fields/retry@v3
59+
with:
60+
timeout_minutes: 30
61+
max_attempts: 3
62+
retry_on: error
63+
command: |
64+
uname -a
65+
apt-get update -y
66+
apt-get install git cmake build-essential make -y
67+
git clone https://github.com/ggerganov/llama.cpp.git
68+
- name: Build
69+
run: |
70+
cd llama.cpp
71+
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:${LD_LIBRARY_PATH}
72+
cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 && cmake --build build -j $(nproc)

0 commit comments

Comments
 (0)