|
1 | | -name: Enflame-GCU300-Build-And-Test |
| 1 | +name: Enflame-GCU300-3.3-Build-And-Test |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [ "triton_v3.3.x", "triton_v3.5.x" ] |
| 5 | + branches: [ "triton_v3.3.x" ] |
6 | 6 | pull_request: |
7 | | - branches: [ "triton_v3.3.x" , "triton_v3.5.x"] |
| 7 | + branches: [ "triton_v3.3.x"] |
8 | 8 |
|
9 | 9 | concurrency: |
10 | 10 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
11 | 11 | cancel-in-progress: true |
12 | 12 |
|
13 | 13 | 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 |
16 | 16 | if: ${{ github.repository == 'FlagTree/flagtree' || github.repository == 'flagos-ai/flagtree' }} |
17 | 17 | steps: |
18 | 18 | - name: Setup environment |
@@ -62,25 +62,27 @@ jobs: |
62 | 62 | id: check_files |
63 | 63 | uses: flagos-ai/FlagTree/.github/actions/check-docs-only@main |
64 | 64 |
|
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 |
67 | 66 | shell: bash |
68 | 67 | run: | |
69 | 68 | 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" |
75 | 76 |
|
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' }} |
78 | 79 | shell: bash |
79 | 80 | run: | |
80 | 81 | set -x |
81 | 82 | python3 -m pip uninstall -y triton |
82 | 83 | python3 -m pip uninstall -y triton_gcu |
83 | 84 | export FLAGTREE_BACKEND=enflame |
| 85 | + cd python |
84 | 86 | MAX_JOBS=32 python3 -m pip install . --no-build-isolation |
85 | 87 |
|
86 | 88 | - name: FlagTree Test on Enflame |
|
0 commit comments