Skip to content

[BUILD] Update build ascend backend #51

[BUILD] Update build ascend backend

[BUILD] Update build ascend backend #51

name: NV-Build-And-Test
on:
schedule:
- cron: '0 21 * * *'
push:
branches: [ "main", "triton_v3.2.x", "triton_v3.3.x" ]
pull_request:
branches: [ "main", "triton_v3.2.x", "triton_v3.3.x" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
nv-build-and-test:
runs-on: nv-jiuding
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Detect Target Branch
shell: bash
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
TARGET_BRANCH="${{ github.base_ref }}"
else
TARGET_BRANCH="${{ github.ref_name }}"
fi
echo "TARGET_BRANCH=$TARGET_BRANCH" >> $GITHUB_ENV
echo "TARGET_BRANCH=$TARGET_BRANCH"
- name: FlagTree Build (Main branch)
if: ${{ env.TARGET_BRANCH == 'main' }}
shell: bash
run: |
source ~/env.sh
cd python
MAX_JOBS=32 pip3.11 install . --no-build-isolation
- name: FlagTree Build (triton_v3.2.x branch)
if: ${{ env.TARGET_BRANCH == 'triton_v3.2.x' }}
shell: bash
run: |
source ~/env-3.2.sh
cd python
MAX_JOBS=32 pip3.11 install . --no-build-isolation
- name: FlagTree Build (triton_v3.3.x branch)
if: ${{ env.TARGET_BRANCH == 'triton_v3.3.x' }}
shell: bash
run: |
source ~/env-3.3.sh
cd python
MAX_JOBS=32 pip3.11 install . --no-build-isolation
- name: FlagTree Test
shell: bash
run: |
pytest -s python/test/unit