Skip to content

Commit e32da6f

Browse files
committed
CANN: Add Ascend CANN build ci
1 parent 76c6e7f commit e32da6f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,3 +1387,33 @@ jobs:
13871387
# popd
13881388
# emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
13891389
# make
1390+
1391+
openEuler-latest-cmake-cann:
1392+
runs-on: ubuntu-latest
1393+
1394+
strategy:
1395+
matrix:
1396+
cann: ['python3.9-cann8.0.rc2.beta1']
1397+
build: ['Release']
1398+
1399+
container:
1400+
image: ascendai/cann:openeuler-${{ matrix.cann }}
1401+
1402+
steps:
1403+
- name: Clone
1404+
id: checkout
1405+
uses: actions/checkout@v4
1406+
1407+
- name: Dependencies
1408+
id: depends
1409+
run: |
1410+
yum update -y
1411+
yum install cmake gcc gcc-c++ make -y
1412+
1413+
- name: Build
1414+
id: cmake-build
1415+
run: |
1416+
mkdir build
1417+
cd build
1418+
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DWITH_CANN=on
1419+
cmake --build . -j $(nproc)

0 commit comments

Comments
 (0)