Skip to content
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Enflame-GCU300-Build-And-Test
name: Enflame-GCU300-3.3-Build-And-Test

on:
push:
branches: [ "triton_v3.3.x", "triton_v3.5.x" ]
branches: [ "triton_v3.3.x" ]
pull_request:
branches: [ "triton_v3.3.x" , "triton_v3.5.x"]
branches: [ "triton_v3.3.x"]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
enflame-gcu300-build-and-test:
runs-on: enflame-gcu300
enflame-gcu300-33x-build-and-test:
runs-on: enflame-gcu300-33x
if: ${{ github.repository == 'FlagTree/flagtree' || github.repository == 'flagos-ai/flagtree' }}
steps:
- name: Setup environment
Expand Down Expand Up @@ -62,25 +62,27 @@ jobs:
id: check_files
uses: flagos-ai/FlagTree/.github/actions/check-docs-only@main

- name: FlagTree Build on Enflame (triton_v3.3.x branch)
if: ${{ steps.check_files.outputs.only_docs_changed != 'true' && env.TARGET_BRANCH == 'triton_v3.3.x' }}
- name: Detect Target Branch
shell: bash
run: |
set -x
pip uninstall -y triton
pip uninstall -y triton_gcu
export FLAGTREE_BACKEND=enflame
cd python
MAX_JOBS=32 python3 -m pip install . --no-build-isolation
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 on Enflame (triton_v3.5.x branch)
if: ${{ steps.check_files.outputs.only_docs_changed != 'true' && env.TARGET_BRANCH == 'triton_v3.5.x' }}
- name: FlagTree Build on Enflame (triton_v3.3.x branch)
if: ${{ steps.check_files.outputs.only_docs_changed != 'true' && env.TARGET_BRANCH == 'triton_v3.3.x' }}
shell: bash
run: |
set -x
python3 -m pip uninstall -y triton
python3 -m pip uninstall -y triton_gcu
export FLAGTREE_BACKEND=enflame
cd python
MAX_JOBS=32 python3 -m pip install . --no-build-isolation

- name: FlagTree Test on Enflame
Expand Down
Loading