Skip to content

Commit fbaed78

Browse files
authored
[CI] Update enflame-gcu300 runner environment (#440)
1 parent af8d685 commit fbaed78

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/enflame-gcu300-build-and-test.yml renamed to .github/workflows/enflame-gcu300-3.3-build-and-test.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
name: Enflame-GCU300-Build-And-Test
1+
name: Enflame-GCU300-3.3-Build-And-Test
22

33
on:
44
push:
5-
branches: [ "triton_v3.3.x", "triton_v3.5.x" ]
5+
branches: [ "triton_v3.3.x" ]
66
pull_request:
7-
branches: [ "triton_v3.3.x" , "triton_v3.5.x"]
7+
branches: [ "triton_v3.3.x"]
88

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

1313
jobs:
14-
enflame-gcu300-build-and-test:
15-
runs-on: enflame-gcu300
14+
enflame-gcu300-33x-build-and-test:
15+
runs-on: enflame-gcu300-33x
1616
if: ${{ github.repository == 'FlagTree/flagtree' || github.repository == 'flagos-ai/flagtree' }}
1717
steps:
1818
- name: Setup environment
@@ -62,25 +62,27 @@ jobs:
6262
id: check_files
6363
uses: flagos-ai/FlagTree/.github/actions/check-docs-only@main
6464

65-
- name: FlagTree Build on Enflame (triton_v3.3.x branch)
66-
if: ${{ steps.check_files.outputs.only_docs_changed != 'true' && env.TARGET_BRANCH == 'triton_v3.3.x' }}
65+
- name: Detect Target Branch
6766
shell: bash
6867
run: |
6968
set -x
70-
pip uninstall -y triton
71-
pip uninstall -y triton_gcu
72-
export FLAGTREE_BACKEND=enflame
73-
cd python
74-
MAX_JOBS=32 python3 -m pip install . --no-build-isolation
69+
if [ "${{ github.event_name }}" = "pull_request" ]; then
70+
TARGET_BRANCH="${{ github.base_ref }}"
71+
else
72+
TARGET_BRANCH="${{ github.ref_name }}"
73+
fi
74+
echo "TARGET_BRANCH=$TARGET_BRANCH" >> $GITHUB_ENV
75+
echo "TARGET_BRANCH=$TARGET_BRANCH"
7576
76-
- name: FlagTree Build on Enflame (triton_v3.5.x branch)
77-
if: ${{ steps.check_files.outputs.only_docs_changed != 'true' && env.TARGET_BRANCH == 'triton_v3.5.x' }}
77+
- name: FlagTree Build on Enflame (triton_v3.3.x branch)
78+
if: ${{ steps.check_files.outputs.only_docs_changed != 'true' && env.TARGET_BRANCH == 'triton_v3.3.x' }}
7879
shell: bash
7980
run: |
8081
set -x
8182
python3 -m pip uninstall -y triton
8283
python3 -m pip uninstall -y triton_gcu
8384
export FLAGTREE_BACKEND=enflame
85+
cd python
8486
MAX_JOBS=32 python3 -m pip install . --no-build-isolation
8587
8688
- name: FlagTree Test on Enflame

0 commit comments

Comments
 (0)