Update build.yml
This commit is contained in:
parent
f77d5ce232
commit
10b5b2b3fc
1 changed files with 15 additions and 16 deletions
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
|
@ -1465,25 +1465,24 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
cann: ['python3.9-cann8.0.rc2.beta1']
|
cann: ['python3.9-cann8.0.rc2.beta1']
|
||||||
build: ['Release']
|
build: ['Release']
|
||||||
|
device: ['ascend910b3']
|
||||||
container:
|
|
||||||
image: ascendai/cann:openeuler-${{ matrix.cann }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Dependencies
|
- name: Dependencies & Build
|
||||||
id: depends
|
uses: uraimo/run-on-arch-action@v2
|
||||||
|
with:
|
||||||
|
arch: aarch64
|
||||||
|
distro: ubuntu22.04
|
||||||
|
base_image: --platform=linux/arm64 ascendai/cann:openeuler-${{ matrix.cann }}
|
||||||
run: |
|
run: |
|
||||||
yum update -y
|
yum update -y
|
||||||
yum install cmake gcc gcc-c++ make -y
|
yum install git cmake gcc gcc-c++ make -y
|
||||||
|
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/aarch64-linux/devlib/:${LD_LIBRARY_PATH}
|
||||||
|
|
||||||
- name: Build
|
cd llama.cpp
|
||||||
id: cmake-build
|
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_CANN=on -DGGML_NATIVE=OFF -DSOC_TYPE=${{ matrix.device }}
|
||||||
run: |
|
cmake --build build
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DWITH_CANN=on
|
|
||||||
cmake --build . -j $(nproc)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue