From e32da6f163308b8b23f93bb56de0d1e13a902509 Mon Sep 17 00:00:00 2001 From: jiahao su Date: Fri, 8 Nov 2024 17:13:54 +0800 Subject: [PATCH] CANN: Add Ascend CANN build ci --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02dcee963..16a52a3cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1387,3 +1387,33 @@ jobs: # popd # emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} # make + + openEuler-latest-cmake-cann: + runs-on: ubuntu-latest + + strategy: + matrix: + cann: ['python3.9-cann8.0.rc2.beta1'] + build: ['Release'] + + container: + image: ascendai/cann:openeuler-${{ matrix.cann }} + + steps: + - name: Clone + id: checkout + uses: actions/checkout@v4 + + - name: Dependencies + id: depends + run: | + yum update -y + yum install cmake gcc gcc-c++ make -y + + - name: Build + id: cmake-build + run: | + mkdir build + cd build + cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DWITH_CANN=on + cmake --build . -j $(nproc)