File tree Expand file tree Collapse file tree 1 file changed +22
-23
lines changed Expand file tree Collapse file tree 1 file changed +22
-23
lines changed Original file line number Diff line number Diff line change @@ -1463,32 +1463,31 @@ jobs:
14631463 defaults :
14641464 run :
14651465 shell : bash -el {0}
1466- runs-on : ubuntu-latest
1467-
1466+ runs-on : ubuntu-24.04-arm
14681467 strategy :
14691468 matrix :
1470- build : ['Release']
1471- cann : ['openeuler-python3.10-cann8.0.rc3.beta1']
1472- device : ['ascend910b3']
1473- container :
1474- image : ascendai/cann:${{ matrix.cann }}
1469+ cann :
1470+ - ' 8.0.rc3.beta1-910b-openeuler22.03-py3.10'
1471+ device :
1472+ - ' ascend910b3'
1473+ build :
1474+ - ' Release'
1475+ container : ascendai/cann:${{ matrix.cann }}
14751476 steps :
1476- - name : Clone
1477- id : checkout
1478- uses : actions/checkout@v4
1477+ - name : Checkout
1478+ uses : actions/checkout@v4
14791479
1480- - name : Dependencies
1481- run : |
1480+ - name : Dependencies
1481+ run : |
14821482 yum update -y
1483- yum install git cmake gcc gcc-c++ make -y
1483+ yum install -y git gcc gcc-c++ make cmake
14841484
1485- - name : Build
1486- run : |
1487- export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:${LD_LIBRARY_PATH}
1488- mkdir build
1489- cd build
1490- cmake .. \
1491- -DCMAKE_BUILD_TYPE=${{ matrix.build }}\
1492- -DGGML_CANN=on\
1493- -DSOC_TYPE=${{ matrix.device }}
1494- cmake --build . -j $(nproc)
1485+ - name : Build
1486+ run : |
1487+ export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
1488+
1489+ cmake -S . -B build \
1490+ -DCMAKE_BUILD_TYPE=${{ matrix.build }} \
1491+ -DGGML_CANN=on \
1492+ -DSOC_TYPE=${{ matrix.device }}
1493+ cmake --build build -j $(nproc)
You can’t perform that action at this time.
0 commit comments