Skip to content

Commit e215390

Browse files
committed
WIP: rebuild wheel from unpacked artifact in cold-start workflow (throwaway)
1 parent dbeaf60 commit e215390

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎.github/workflows/cold-test.yml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,19 @@ jobs:
3030
run: gh run download "${{ matrix.build_run_id }}" --repo "${{ github.repository }}" --pattern '*.whl' --dir wheel
3131
- name: Install wheel
3232
shell: bash
33-
run: pip install "$(find wheel -type f -name "*.whl" | head -1)"
33+
run: |
34+
ls -la wheel
35+
f=$(ls -d wheel/*.whl | head -1)
36+
mkdir -p rebuilt
37+
if [ -d "$f" ]; then
38+
# gh unpacked the raw .whl artifact: zip it back into a wheel
39+
(cd "$f" && python -m zipfile -c "../../rebuilt/$(basename "$f")" *)
40+
else
41+
cp "$f" rebuilt/
42+
fi
43+
ls -la rebuilt
44+
pip install rebuilt/*.whl
45+
python -c "import cefpython3, sys; print(cefpython3.__file__)"
3446
- name: Cold run then two warm runs
3547
shell: bash
3648
run: |

0 commit comments

Comments
 (0)