forked from PaddlePaddle/Paddle
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (78 loc) · 2.4 KB
/
Api-Benchmark-baseline.yml
File metadata and controls
87 lines (78 loc) · 2.4 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
name: Api-benchmark-baseline
on:
workflow_dispatch:
inputs:
PR_ID:
required: false
type: string
COMMIT_ID:
required: false
type: string
job-name:
required: true
default: 'api-benchmark'
type: choice
options:
- api-benchmark
- others
schedule:
- cron: '0 21 * * *'
permissions: read-all
defaults:
run:
shell: bash
jobs:
clone:
name: Api benchmark clone
uses: ./.github/workflows/_Clone-linux.yml
with:
clone_dir: Paddle-build
is_pr: 'false'
build-docker:
name: Api benchmark build docker
needs: clone
uses: ./.github/workflows/docker.yml
with:
clone_dir: Paddle-build
task: build
build:
name: Api benchmark build
if: github.event_name == 'schedule' && github.event.schedule == '0 21 * * *'
needs: [clone, build-docker]
uses: ./.github/workflows/_Linux-build.yml
with:
docker_build_image: ${{ needs.build-docker.outputs.docker_build_image }}
is_pr: 'false'
api-benchmark-baseline-schedule:
name: Api benchmark baseline with schedule
strategy:
matrix:
run-labels: [api-bm-20, api-bm-27]
uses: ./.github/workflows/_Api-Benchmark.yml
needs: [clone, build-docker, build]
with:
docker_build_image: ${{ needs.build-docker.outputs.docker_build_image }}
baseline: 'true'
run-labels: ${{ matrix.run-labels }}
api-benchmark-baseline-pr-20:
name: Api benchmark baseline with PR on 20
if: github.event_name == 'workflow_dispatch' && github.event.inputs.job-name == 'api-benchmark'
uses: ./.github/workflows/_Api-Benchmark.yml
needs: [clone, build-docker]
with:
docker_build_image: ${{ needs.build-docker.outputs.docker_build_image }}
baseline: 'true'
MANUALLY_PR_ID: ${{ inputs.PR_ID }}
MANUALLY_COMMIT_ID: ${{ inputs.COMMIT_ID }}
run-labels: api-bm-20
api-benchmark-baseline-pr-27:
name: Api benchmark baseline with PR on 27
if: github.event_name == 'workflow_dispatch' && github.event.inputs.job-name == 'api-benchmark'
uses: ./.github/workflows/_Api-Benchmark.yml
needs: [clone, build-docker]
with:
docker_build_image: ${{ needs.build-docker.outputs.docker_build_image }}
baseline: 'true'
MANUALLY_PR_ID: ${{ inputs.PR_ID }}
MANUALLY_COMMIT_ID: ${{ inputs.COMMIT_ID }}
run-labels: api-bm-27