Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CANN: Add Ascend CANN build ci #10217

Merged
merged 13 commits into from
Jan 24, 2025
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1387,3 +1387,33 @@ jobs:
# popd
# emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
# make

openEuler-latest-cmake-cann:
xuedinge233 marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest

strategy:
matrix:
cann: ['python3.9-cann8.0.rc2.beta1']
xuedinge233 marked this conversation as resolved.
Show resolved Hide resolved
build: ['Release']

container:
image: ascendai/cann:openeuler-${{ matrix.cann }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only runs on openeuler?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first openeuler, and then ubuntu


steps:
- name: Clone
id: checkout
hipudding marked this conversation as resolved.
Show resolved Hide resolved
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
xuedinge233 marked this conversation as resolved.
Show resolved Hide resolved
cmake --build . -j $(nproc)
Loading