File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed
Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,14 @@ jobs:
2626 with :
2727 checkout_version : ' v6'
2828
29- - name : Check if only docs files changed
30- id : check_files
31- uses : flagos-ai/FlagTree/.github/actions/check-docs-only@main
29+ - name : Check if backend-relevant files changed
30+ id : check_backend
31+ uses : flagos-ai/FlagTree/.github/actions/check-backend-changed@main
32+ with :
33+ backend : ascend
3234
3335 - name : FlagTree Build on Ascend
34- if : steps.check_files .outputs.only_docs_changed ! = 'true'
36+ if : steps.check_backend .outputs.should_skip = = 'true'
3537 shell : bash
3638 run : |
3739 set -x
4143 MAX_JOBS=32 python3 -m pip install . --no-build-isolation
4244
4345 - name : FlagTree Test on Ascend
44- if : steps.check_files .outputs.only_docs_changed ! = 'true'
46+ if : steps.check_backend .outputs.should_skip = = 'true'
4547 shell : bash
4648 run : |
4749 set -x
8284 popd
8385
8486 - name : FlagTree Editable Build And Test on Ascend
85- if : steps.check_files .outputs.only_docs_changed != 'true'
87+ if : steps.check_backend .outputs.should_skip != 'true'
8688 shell : bash
8789 run : |
8890 set -x
Original file line number Diff line number Diff line change 2828 with :
2929 checkout_version : ' v6'
3030
31- - name : Check if only docs files changed
32- id : check_files
33- uses : flagos-ai/FlagTree/.github/actions/check-docs-only@main
31+ - name : Check if backend-relevant files changed
32+ id : check_backend
33+ uses : flagos-ai/FlagTree/.github/actions/check-backend-changed@main
34+ with :
35+ backend : nvidia
3436
3537 - name : Detect Target Branch
3638 shell : bash
4547 echo "TARGET_BRANCH=$TARGET_BRANCH"
4648
4749 - name : FlagTree Build on NVidia (main branch)
48- if : ${{ steps.check_files .outputs.only_docs_changed != 'true' && env.TARGET_BRANCH == 'main' }}
50+ if : ${{ steps.check_backend .outputs.should_skip != 'true' && env.TARGET_BRANCH == 'main' }}
4951 shell : bash
5052 run : |
5153 set -x
5557 MAX_JOBS=32 python3 -m pip install . --no-build-isolation
5658
5759 - name : FlagTree Build on NVidia (triton_v3.2.x branch)
58- if : ${{ steps.check_files .outputs.only_docs_changed != 'true' && env.TARGET_BRANCH == 'triton_v3.2.x' }}
60+ if : ${{ steps.check_backend .outputs.should_skip != 'true' && env.TARGET_BRANCH == 'triton_v3.2.x' }}
5961 shell : bash
6062 run : |
6163 set -x
6567 MAX_JOBS=32 python3 -m pip install . --no-build-isolation
6668
6769 - name : FlagTree Build on NVidia (triton_v3.3.x branch)
68- if : ${{ steps.check_files .outputs.only_docs_changed != 'true' && env.TARGET_BRANCH == 'triton_v3.3.x' }}
70+ if : ${{ steps.check_backend .outputs.should_skip != 'true' && env.TARGET_BRANCH == 'triton_v3.3.x' }}
6971 shell : bash
7072 run : |
7173 set -x
7577 MAX_JOBS=32 python3 -m pip install . --no-build-isolation
7678
7779 - name : FlagTree Test on NVidia
78- if : steps.check_files .outputs.only_docs_changed ! = 'true'
80+ if : steps.check_backend .outputs.should_skip = = 'true'
7981 shell : bash
8082 run : |
8183 set -x
You can’t perform that action at this time.
0 commit comments