-
Notifications
You must be signed in to change notification settings - Fork 368
151 lines (131 loc) · 4.48 KB
/
on_push_main.yml
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name: Push To Main
on:
push:
branches:
- "main"
# Can be triggered manually from within the UI or using the GH CLI,
# e.g. `gh workflow run on_push_main.yml --ref main`
workflow_dispatch:
inputs:
CONCURRENCY:
required: true
type: string
permissions: write-all
jobs:
checks:
name: Checks
uses: ./.github/workflows/reusable_checks.yml
with:
CONCURRENCY: push-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
CHANNEL: main
secrets: inherit
cpp_checks:
name: Checks
uses: ./.github/workflows/reusable_checks_cpp.yml
with:
CONCURRENCY: push-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
CHANNEL: main
secrets: inherit
rust_checks:
name: Checks
uses: ./.github/workflows/reusable_checks_rust.yml
with:
CONCURRENCY: push-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
CHANNEL: main
secrets: inherit
python_checks:
name: Checks
uses: ./.github/workflows/reusable_checks_python.yml
with:
CONCURRENCY: push-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
secrets: inherit
deploy-docs:
needs: [checks]
name: Deploy Docs
uses: ./.github/workflows/reusable_deploy_docs.yml
with:
CONCURRENCY: push-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
PY_DOCS_VERSION_NAME: "main"
CPP_DOCS_VERSION_NAME: "main"
RS_DOCS_VERSION_NAME: "head"
UPDATE_LATEST: false
secrets: inherit
build-web:
name: "Build web viewer"
uses: ./.github/workflows/reusable_build_web.yml
with:
CONCURRENCY: push-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
CHANNEL: main
secrets: inherit
upload-web:
name: "Upload Web"
needs: [build-web]
uses: ./.github/workflows/reusable_upload_web.yml
with:
CONCURRENCY: push-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
secrets: inherit
build-examples:
name: "Build Examples"
needs: [build-wheel-linux-x64]
uses: ./.github/workflows/reusable_build_examples.yml
with:
CONCURRENCY: push-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
CHANNEL: main
WHEEL_ARTIFACT_NAME: linux-x64-wheel
secrets: inherit
track-sizes:
name: "Track Sizes"
needs: [build-web, build-examples]
uses: ./.github/workflows/reusable_track_size.yml
with:
CONCURRENCY: push-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
WITH_EXAMPLES: true
secrets: inherit
upload-examples:
name: "Upload Examples"
needs: [build-examples]
uses: ./.github/workflows/reusable_upload_examples.yml
with:
CONCURRENCY: push-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
secrets: inherit
# -----------------------------------------------------------------------------------
# TODO(emilk): build and test one additional platform, picked at random
build-rerun_c-and-upload-linux-x64:
needs: [checks]
name: "Linux-x64: Build & Upload rerun_c"
uses: ./.github/workflows/reusable_build_and_upload_rerun_c.yml
with:
CONCURRENCY: push-linux-x64-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
PLATFORM: linux-x64
secrets: inherit
# -----------------------------------------------------------------------------------
# TODO(emilk): build and test one additional platform, picked at random
build-rerun-cli-and-upload-linux-x64:
needs: [checks]
name: "Linux-x64: Build & Upload rerun-cli"
uses: ./.github/workflows/reusable_build_and_upload_rerun_cli.yml
with:
CONCURRENCY: push-linux-x64-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
PLATFORM: linux-x64
secrets: inherit
# -----------------------------------------------------------------------------------
# TODO(emilk): build and test one additional platform, picked at random
build-wheel-linux-x64:
needs: [checks, build-rerun-cli-and-upload-linux-x64]
name: "Linux-x64: Build & Upload Wheels"
uses: ./.github/workflows/reusable_build_and_upload_wheels.yml
with:
CONCURRENCY: push-linux-x64-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
PLATFORM: linux-x64
WHEEL_ARTIFACT_NAME: linux-x64-wheel
MODE: "pypi"
secrets: inherit
test-wheel-linux-x64:
needs: [checks, build-wheel-linux-x64]
name: "Linux-x64: Test Wheels"
uses: ./.github/workflows/reusable_test_wheels.yml
with:
CONCURRENCY: push-linux-x64-${{ github.ref_name }}-${{ inputs.CONCURRENCY }}
PLATFORM: linux-x64
WHEEL_ARTIFACT_NAME: linux-x64-wheel
secrets: inherit