Skip to content

Commit 2c0125e

Browse files
committed
Attempt workflow parallelization
1 parent cbbddba commit 2c0125e

File tree

1 file changed

+109
-26
lines changed

1 file changed

+109
-26
lines changed

.github/workflows/python_wheel_build.yml

Lines changed: 109 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,11 @@ jobs:
2222
with:
2323
ref: ${{ inputs.branch }}
2424

25-
# - name: Build wheel
26-
# uses: pypa/[email protected]
27-
# env:
28-
# CIBW_BUILD: cp38-manylinux_x86_64
29-
# with:
30-
# output-dir: ${{ env.WORKDIR }}/wheelhouse
25+
- name: Build wheel
26+
uses: pypa/[email protected]
27+
env:
28+
CIBW_BUILD: cp38-manylinux_x86_64
3129

32-
- name: Mock step
33-
run: |
34-
mkdir -p wheelhouse
35-
touch wheelhouse/wheel1.whl
36-
touch wheelhouse/wheel2.whl
37-
3830
- name: Upload wheel
3931
uses: actions/upload-artifact@v4
4032
with:
@@ -49,27 +41,95 @@ jobs:
4941
with:
5042
ref: ${{ inputs.branch }}
5143

52-
# - name: Build wheel
53-
# uses: pypa/[email protected]
54-
# env:
55-
# CIBW_BUILD: cp39-manylinux_x86_64
56-
# with:
57-
# output-dir: ${{ env.WORKDIR }}/wheelhouse
44+
- name: Build wheel
45+
uses: pypa/[email protected]
46+
env:
47+
CIBW_BUILD: cp39-manylinux_x86_64
5848

59-
- name: Mock step
60-
run: |
61-
mkdir -p wheelhouse
62-
touch wheelhouse/wheel3.whl
63-
touch wheelhouse/wheel4.whl
64-
6549
- name: Upload wheel
6650
uses: actions/upload-artifact@v4
6751
with:
6852
name: cp39-manylinux_x86_64
6953
path: wheelhouse/*
7054

55+
cp310-manylinux_x86_64:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v4
60+
with:
61+
ref: ${{ inputs.branch }}
62+
63+
- name: Build wheel
64+
uses: pypa/[email protected]
65+
env:
66+
CIBW_BUILD: cp310-manylinux_x86_64
67+
68+
- name: Upload wheel
69+
uses: actions/upload-artifact@v4
70+
with:
71+
name: cp310-manylinux_x86_64
72+
path: wheelhouse/*
73+
74+
cp311-manylinux_x86_64:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- name: Checkout
78+
uses: actions/checkout@v4
79+
with:
80+
ref: ${{ inputs.branch }}
81+
82+
- name: Build wheel
83+
uses: pypa/[email protected]
84+
env:
85+
CIBW_BUILD: cp311-manylinux_x86_64
86+
87+
- name: Upload wheel
88+
uses: actions/upload-artifact@v4
89+
with:
90+
name: cp311-manylinux_x86_64
91+
path: wheelhouse/*
92+
93+
cp312-manylinux_x86_64:
94+
runs-on: ubuntu-latest
95+
steps:
96+
- name: Checkout
97+
uses: actions/checkout@v4
98+
with:
99+
ref: ${{ inputs.branch }}
100+
101+
- name: Build wheel
102+
uses: pypa/[email protected]
103+
env:
104+
CIBW_BUILD: cp312-manylinux_x86_64
105+
106+
- name: Upload wheel
107+
uses: actions/upload-artifact@v4
108+
with:
109+
name: cp312-manylinux_x86_64
110+
path: wheelhouse/*
111+
112+
cp313-manylinux_x86_64:
113+
runs-on: ubuntu-latest
114+
steps:
115+
- name: Checkout
116+
uses: actions/checkout@v4
117+
with:
118+
ref: ${{ inputs.branch }}
119+
120+
- name: Build wheel
121+
uses: pypa/[email protected]
122+
env:
123+
CIBW_BUILD: cp313-manylinux_x86_64
124+
125+
- name: Upload wheel
126+
uses: actions/upload-artifact@v4
127+
with:
128+
name: cp313-manylinux_x86_64
129+
path: wheelhouse/*
130+
71131
create_and_upload_wheel_registry:
72-
needs: [cp38-manylinux_x86_64, cp39-manylinux_x86_64]
132+
needs: [cp38-manylinux_x86_64, cp39-manylinux_x86_64, cp310-manylinux_x86_64, cp311-manylinux_x86_64, cp312-manylinux_x86_64, cp313-manylinux_x86_64]
73133
runs-on: ubuntu-latest
74134
steps:
75135

@@ -83,6 +143,26 @@ jobs:
83143
with:
84144
name: cp39-manylinux_x86_64
85145

146+
- name: Download artifact
147+
uses: actions/download-artifact@v4
148+
with:
149+
name: cp310-manylinux_x86_64
150+
151+
- name: Download artifact
152+
uses: actions/download-artifact@v4
153+
with:
154+
name: cp311-manylinux_x86_64
155+
156+
- name: Download artifact
157+
uses: actions/download-artifact@v4
158+
with:
159+
name: cp312-manylinux_x86_64
160+
161+
- name: Download artifact
162+
uses: actions/download-artifact@v4
163+
with:
164+
name: cp313-manylinux_x86_64
165+
86166
- name: Setup Python
87167
uses: actions/setup-python@v5
88168

@@ -96,14 +176,17 @@ jobs:
96176
run: |
97177
mkdir -p wheelhouse
98178
mv *.whl wheelhouse
179+
python -m pip install --upgrade pip
180+
python -m pip install --user simple503
181+
simple503 wheelhouse
99182
100183
- name: Upload wheel registry to github
101184
uses: actions/upload-artifact@v4
102185
with:
103186
name: cibw-wheels-registry
104187
path: wheelhouse
105188

106-
- name: Upload wheel to EOS
189+
- name: Upload wheels to EOS
107190
env:
108191
RWEBEOS_KT: ${{ secrets.RWEBEOS_KT }}
109192
KT_FILE_NAME: /tmp/decoded.keytab

0 commit comments

Comments
 (0)