-
Notifications
You must be signed in to change notification settings - Fork 355
55 lines (48 loc) · 1.33 KB
/
ubuntu18.04-py3.6-cibuild-build-serving.yaml
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
name: CPU Build Serving
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
- '*.md'
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
- 'docs/**'
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
- '*.md'
env:
IMAGE: alideeprec/deeprec-cicd:deeprec-dev-cpu-cibuild-py38-ubuntu20.04
JOBNAME: deeprec-ci-cpu-${{ github.run_id }}
jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Pull Image And Start Container
if: ${{ success() }}
run:
cibuild/pull_image_and_start_container.sh cpu ${IMAGE} ${JOBNAME}
- name: Upload Source
if: ${{ success() }}
run:
cibuild/upload.sh ${JOBNAME} ../cibuild /mnt
- name: Build Serving
if: ${{ success() }}
run:
docker exec ${JOBNAME} /mnt/cibuild/serving-cpu.sh /mnt
- name: Remove Container
if: ${{ always() }}
run:
cibuild/remove_container.sh ${JOBNAME}