CANN: Add Ascend CANN build ci
This commit is contained in:
parent
76c6e7f105
commit
e32da6f163
1 changed files with 30 additions and 0 deletions
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
|
@ -1387,3 +1387,33 @@ jobs:
|
||||||
# popd
|
# popd
|
||||||
# emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
|
# emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
|
||||||
# make
|
# 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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue