Skip to content

Commit 7b94c81

Browse files
committed
Include new CI action for building all wheels in an adhoc manner
1 parent 0664d4f commit 7b94c81

File tree

1 file changed

+143
-0
lines changed

1 file changed

+143
-0
lines changed

.github/workflows/adhoc_wheels.yml

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
name: Adhoc Wheels
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
MODE:
7+
type: choice
8+
required: false
9+
options:
10+
- pypi
11+
- pr
12+
- extra
13+
description: "The build mode (`pypi` includes the web viewer, `pr` does not)"
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
19+
permissions:
20+
contents: "write"
21+
id-token: "write"
22+
deployments: "write"
23+
24+
jobs:
25+
26+
# -----------------------------------------------------------------------------------
27+
# Build rerun-cli (rerun binaries):
28+
29+
build-rerun-cli-and-upload-linux-arm64:
30+
name: "Linux-arm64: Build & Upload rerun-cli"
31+
uses: ./.github/workflows/reusable_build_and_upload_rerun_cli.yml
32+
with:
33+
CONCURRENCY: adhoc-wheels-linux-arm64
34+
PLATFORM: linux-arm64
35+
secrets: inherit
36+
37+
build-rerun-cli-and-upload-linux-x64:
38+
name: "Linux-x64: Build & Upload rerun-cli"
39+
uses: ./.github/workflows/reusable_build_and_upload_rerun_cli.yml
40+
with:
41+
CONCURRENCY: adhoc-wheels-linux-x64
42+
PLATFORM: linux-x64
43+
secrets: inherit
44+
45+
build-rerun-cli-and-upload-macos-x64:
46+
name: "Mac-x64: Build & Upload rerun-cli"
47+
uses: ./.github/workflows/reusable_build_and_upload_rerun_cli.yml
48+
with:
49+
CONCURRENCY: adhoc-wheels-macos-x64
50+
PLATFORM: macos-x64
51+
secrets: inherit
52+
53+
build-rerun-cli-and-upload-macos-arm64:
54+
name: "Mac-arm64: Build & Upload rerun-cli"
55+
uses: ./.github/workflows/reusable_build_and_upload_rerun_cli.yml
56+
with:
57+
CONCURRENCY: adhoc-wheels-macos-arm64
58+
PLATFORM: macos-arm64
59+
secrets: inherit
60+
61+
build-rerun-cli-and-upload-windows-x64:
62+
name: "Windows-x64: Build & Upload rerun-cli"
63+
uses: ./.github/workflows/reusable_build_and_upload_rerun_cli.yml
64+
with:
65+
CONCURRENCY: adhoc-wheels-windows-x64
66+
PLATFORM: windows-x64
67+
secrets: inherit
68+
69+
# ---------------------------------------------------------------------------
70+
# Build wheels:
71+
72+
build-wheel-linux-arm64:
73+
needs: [build-rerun-cli-and-upload-linux-arm64]
74+
name: "Linux-arm64: Build & Upload Wheels"
75+
uses: ./.github/workflows/reusable_build_and_upload_wheels.yml
76+
with:
77+
CONCURRENCY: adhoc-wheels-linux-arm64
78+
PLATFORM: linux-arm64
79+
WHEEL_ARTIFACT_NAME: linux-arm64-wheel
80+
MODE: ${{ inputs.MODE }}
81+
secrets: inherit
82+
83+
build-wheel-linux-x64:
84+
needs: [build-rerun-cli-and-upload-linux-x64]
85+
name: "Linux-x64: Build & Upload Wheels"
86+
uses: ./.github/workflows/reusable_build_and_upload_wheels.yml
87+
with:
88+
CONCURRENCY: adhoc-wheels-linux-x64
89+
PLATFORM: linux-x64
90+
WHEEL_ARTIFACT_NAME: linux-x64-wheel
91+
MODE: ${{ inputs.MODE }}
92+
secrets: inherit
93+
94+
build-wheel-macos-arm64:
95+
needs: [build-rerun-cli-and-upload-macos-arm64]
96+
name: "Macos-arm64: Build & Upload Wheels"
97+
uses: ./.github/workflows/reusable_build_and_upload_wheels.yml
98+
with:
99+
CONCURRENCY: adhoc-wheels-macos-arm64
100+
PLATFORM: macos-arm64
101+
WHEEL_ARTIFACT_NAME: macos-arm64-wheel
102+
MODE: ${{ inputs.MODE }}
103+
secrets: inherit
104+
105+
build-wheel-macos-x64:
106+
needs: [build-rerun-cli-and-upload-macos-x64]
107+
name: "Macos-x64: Build & Upload Wheels"
108+
uses: ./.github/workflows/reusable_build_and_upload_wheels.yml
109+
with:
110+
CONCURRENCY: adhoc-wheels-macos-x64
111+
PLATFORM: macos-x64
112+
WHEEL_ARTIFACT_NAME: "macos-x64-wheel"
113+
MODE: ${{ inputs.MODE }}
114+
secrets: inherit
115+
116+
build-wheel-windows-x64:
117+
needs: [build-rerun-cli-and-upload-windows-x64]
118+
name: "Windows-x64: Build & Upload Wheels"
119+
uses: ./.github/workflows/reusable_build_and_upload_wheels.yml
120+
with:
121+
CONCURRENCY: adhoc-wheels-windows-x64
122+
PLATFORM: windows-x64
123+
WHEEL_ARTIFACT_NAME: windows-x64-wheel
124+
MODE: "pypi"
125+
secrets: inherit
126+
127+
# --------------------------------------------------------------------------
128+
129+
generate-pip-index:
130+
name: "Generate Pip Index"
131+
needs:
132+
[
133+
build-wheel-linux-arm64,
134+
build-wheel-linux-x64,
135+
build-wheel-macos-arm64,
136+
build-wheel-macos-x64,
137+
build-wheel-windows-x64,
138+
]
139+
uses: ./.github/workflows/reusable_pip_index.yml
140+
with:
141+
CONCURRENCY: adhoc-wheels
142+
secrets: inherit
143+

0 commit comments

Comments
 (0)