Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,25 @@ on:
jobs:

build-and-release:
defaults:
run:
shell: bash
permissions:
contents: write
strategy:
matrix:
os: [ubuntu-24.04-arm]
arch: [x86_64, aarch64]
hardware: [910b, a3]
cann_version: [8.5.0]
runs-on: ${{ matrix.os }}
cann_version: [8.3.rc2, 8.5.0]
# Ref: https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for-public-repositories
include:
- arch: x86_64
runner: ubuntu-24.04
- arch: aarch64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
container:
image: quay.io/ascend/cann:${{ matrix.cann_version }}-${{ matrix.hardware }}-ubuntu22.04-py3.11
permissions:
contents: write
defaults:
run:
shell: bash

steps:
- name: Checkout repository
Expand All @@ -39,13 +45,11 @@ jobs:

- name: Install dependency
run: |
env
bash scripts/npu_ci_install_dependency.sh

- name: Build SGL-Kernel-NPU
run: |
env -i PATH=${PATH} bash --login -c "
env
export LD_LIBRARY_PATH=${ASCEND_HOME_PATH}/runtime/lib64/stub:${LD_LIBRARY_PATH} && \
./build.sh -a kernels
"
Expand Down Expand Up @@ -75,7 +79,7 @@ jobs:

- name: Pack up packages
run: |
zip -v "sgl-kernel-npu_${{ github.event.release.tag_name }}_${{ matrix.cann_version }}_${{ matrix.hardware }}.zip" output/*.whl
zip -v "sgl-kernel-npu-${{ github.event.release.tag_name }}-${{ matrix.cann_version }}-${{ matrix.hardware }}-${{ matrix.arch }}.zip" output/*.whl

- name: Upload Release Artifacts
if: github.event_name != 'pull_request'
Expand Down