-
Notifications
You must be signed in to change notification settings - Fork 6k
132 lines (115 loc) · 3.74 KB
/
Copy pathCI.yml
File metadata and controls
132 lines (115 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: CI
on:
pull_request:
types: [opened, synchronize]
branches: [develop, release/**, fleety_*]
permissions: read-all
concurrency:
group: ${{ github.event.pull_request.number }}-${{ github.workflow }}
cancel-in-progress: true
env:
PR_ID: ${{ github.event.pull_request.number }}
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
jobs:
check-skill:
name: Check file paths
if: ${{ github.repository_owner == 'PaddlePaddle' }}
runs-on:
group: APPROVAL
timeout-minutes: 5
continue-on-error: true
permissions:
contents: read
pull-requests: read
outputs:
can-skip: ${{ steps.skip-skill.outputs.should-skip }}
steps:
- name: Cleanup
run: |
rm -rf * .[^.]*
- name: Run skip check
id: skip-skill
continue-on-error: true
uses: $/.github/actions/skip-skill
with:
github-token: ${{ github.token }}
ignore-paths: '.agents/skills/**'
clone:
name: Clone-linux
needs: check-skill
uses: ./.github/workflows/_Clone-linux.yml
with:
workflow-name: 'CI'
skill-can-skip: ${{ needs.check-skill.outputs.can-skip }}
build-docker:
name: build docker images
needs: clone
uses: ./.github/workflows/docker.yml
sot:
name: PR-CI-SOT
uses: ./.github/workflows/_SOT.yml
needs: [clone, build-docker]
with:
docker_sot_image: ${{ needs.build-docker.outputs.docker_sot_image }}
clone-can-skip: ${{ needs.clone.outputs.can-skip }}
mac:
name: Mac-CPU
uses: ./.github/workflows/_Mac.yml
needs: clone
with:
clone-can-skip: ${{ needs.clone.outputs.can-skip }}
xpu:
name: Linux-XPU
uses: ./.github/workflows/_Linux-XPU.yml
needs: [clone, build-docker]
with:
docker_xpu_image: ${{ needs.build-docker.outputs.docker_xpu_image }}
clone-can-skip: ${{ needs.clone.outputs.can-skip }}
dcu:
name: Linux-DCU
uses: ./.github/workflows/_Linux-DCU.yml
needs: [clone, build-docker]
with:
docker_dcu_image: ${{ needs.build-docker.outputs.docker_dcu_image }}
clone-can-skip: ${{ needs.clone.outputs.can-skip }}
cpu:
name: Linux-CPU
uses: ./.github/workflows/_Linux-CPU.yml
needs: [clone, build-docker]
with:
docker_cpu_image: ${{ needs.build-docker.outputs.docker_cpu_image }}
clone-can-skip: ${{ needs.clone.outputs.can-skip }}
npu:
name: Linux-NPU
uses: ./.github/workflows/_Linux-NPU.yml
needs: [clone, cpu, build-docker]
with:
can-skip: ${{ needs.cpu.outputs.can-skip == 'true' || needs.clone.outputs.can-skip == 'true' }}
docker_npu_image: ${{ needs.build-docker.outputs.docker_npu_image }}
# ixuca:
# name: Linux-IXUCA
# uses: ./.github/workflows/_Linux-IXUCA.yml
# needs: [clone]
# with:
# can-skip: ${{ needs.clone.outputs.can-skip }}
distribute:
name: Distribute-stable-build
uses: ./.github/workflows/_Distribute-stable.yml
needs: [clone, build-docker]
with:
docker_distribute_image: ${{ needs.build-docker.outputs.docker_distribute_image }}
clone-can-skip: ${{ needs.clone.outputs.can-skip }}
# distribute-test:
# name: Distribute-stable-test
# uses: ./.github/workflows/_Distribute-stable-Test.yml
# needs: [clone, build-docker, distribute]
# with:
# docker_distribute_image: ${{ needs.build-docker.outputs.docker_distribute_image }}
# clone-can-skip: ${{ needs.clone.outputs.can-skip }}
# distribute-formers:
# name: Distribute-stable-formers
# uses: ./.github/workflows/_Distribute-stable-Formers.yml
# needs: [clone, build-docker, distribute]
# with:
# docker_distribute_image: ${{ needs.build-docker.outputs.docker_distribute_image }}
# clone-can-skip: ${{ needs.clone.outputs.can-skip }}