Update build.yml

This commit is contained in:
jiahao su 2025-01-24 10:31:51 +08:00 committed by GitHub
parent 6fa26b6a20
commit 7620e4023c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1463,32 +1463,31 @@ jobs:
defaults: defaults:
run: run:
shell: bash -el {0} shell: bash -el {0}
runs-on: ubuntu-latest runs-on: ubuntu-24.04-arm
strategy: strategy:
matrix: matrix:
build: ['Release'] cann:
cann: ['openeuler-python3.10-cann8.0.rc3.beta1'] - '8.0.rc3.beta1-910b-openeuler22.03-py3.10'
device: ['ascend910b3'] device:
container: - 'ascend910b3'
image: ascendai/cann:${{ matrix.cann }} build:
- 'Release'
container: ascendai/cann:${{ matrix.cann }}
steps: steps:
- name: Clone - name: Checkout
id: checkout uses: actions/checkout@v4
uses: actions/checkout@v4
- name: Dependencies - name: Dependencies
run: | run: |
yum update -y yum update -y
yum install git cmake gcc gcc-c++ make -y yum install -y git gcc gcc-c++ make cmake
- name: Build - name: Build
run: | run: |
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
mkdir build
cd build cmake -S . -B build \
cmake .. \ -DCMAKE_BUILD_TYPE=${{ matrix.build }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build }}\ -DGGML_CANN=on \
-DGGML_CANN=on\ -DSOC_TYPE=${{ matrix.device }}
-DSOC_TYPE=${{ matrix.device }} cmake --build build -j $(nproc)
cmake --build . -j $(nproc)