|
14 | 14 | - cron: '01 1 * * *' |
15 | 15 |
|
16 | 16 | jobs: |
17 | | - python_wheel: |
18 | | - runs-on: |
19 | | - - self-hosted |
20 | | - - linux |
21 | | - - x64 |
22 | | - env: |
23 | | - WORKDIR: /home/runner/work/root |
24 | | - container: |
25 | | - image: registry.cern.ch/root-ci/ubuntu2404:buildready |
26 | | - options: '--security-opt label=disable --user="ubuntu" --rm' |
| 17 | + cp38-manylinux_x86_64: |
| 18 | + runs-on: ubuntu-latest |
27 | 19 | steps: |
28 | 20 | - name: Checkout |
29 | 21 | uses: actions/checkout@v4 |
30 | 22 | with: |
31 | 23 | ref: ${{ inputs.branch }} |
32 | 24 |
|
33 | | - - name: Setup Python |
34 | | - uses: actions/setup-python@v5 |
| 25 | + # - name: Build wheel |
| 26 | + |
| 27 | + # env: |
| 28 | + # CIBW_BUILD: cp38-manylinux_x86_64 |
| 29 | + # with: |
| 30 | + # output-dir: ${{ env.WORKDIR }}/wheelhouse |
| 31 | + |
| 32 | + - name: Mock step |
| 33 | + run: | |
| 34 | + mkdir -p wheelhouse |
| 35 | + touch wheelhouse/wheel1.whl |
| 36 | + touch wheelhouse/wheel2.whl |
| 37 | +
|
| 38 | + - name: Upload wheel |
| 39 | + uses: actions/upload-artifact@v4 |
35 | 40 | with: |
36 | | - python-version: 3.13 |
| 41 | + name: cp38-manylinux_x86_64 |
| 42 | + path: wheelhouse/* |
37 | 43 |
|
38 | | - # - name: Set up Python Virtual Environment |
39 | | - # run: | |
40 | | - # python -m venv /py-venv/cibuildwheel-env |
41 | | - # . /py-venv/cibuildwheel-env/bin/activate |
42 | | - # echo PATH=$PATH >> $GITHUB_ENV |
| 44 | + create_and_upload_wheel_registry: |
| 45 | + needs: cp38-manylinux_x86_64 |
| 46 | + runs-on: ubuntu-latest |
| 47 | + steps: |
43 | 48 |
|
44 | | - - name: Update repositories |
45 | | - run: apt-get update |
| 49 | + - name: Download artifact |
| 50 | + uses: actions/download-artifact@v4 |
| 51 | + with: |
| 52 | + name: cp38-manylinux_x86_64 |
| 53 | + |
| 54 | + - name: Setup Python |
| 55 | + uses: actions/setup-python@v5 |
46 | 56 |
|
47 | 57 | - name: Install Kerberos utilities |
48 | | - run: apt-get install -y krb5-user |
| 58 | + run: sudo apt-get install -y krb5-user |
49 | 59 |
|
50 | 60 | - name: Install XRootD client |
51 | | - run: apt-get -y install xrootd-client |
52 | | - |
53 | | - - name: Configure large ccache |
54 | | - if: ${{ matrix.is_special }} |
55 | | - run: | |
56 | | - ccache -o max_size=5G |
57 | | - ccache -p || true |
58 | | - ccache -s || true |
59 | | -
|
60 | | - - name: Build wheels |
61 | | - env: |
62 | | - PIP_ROOT_USER_ACTION: ignore |
63 | | - PIP_DISABLE_PIP_VERSION_CHECK: 1 |
64 | | - |
65 | | - with: |
66 | | - output-dir: ${{ env.WORKDIR }}/wheelhouse |
| 61 | + run: sudo apt-get -y install xrootd-client |
67 | 62 |
|
68 | 63 | - name: Create PEP503-compliant wheel registry |
69 | 64 | run: | |
| 65 | + mkdir -p wheelhouse |
| 66 | + mv *.whl wheelhouse |
70 | 67 | python -m pip install --upgrade pip |
71 | 68 | python -m pip install simple503 |
72 | | - simple503 ${{ env.WORKDIR }}/wheelhouse |
| 69 | + simple503 wheelhouse |
73 | 70 |
|
74 | 71 | - name: Upload wheel registry to github |
75 | 72 | uses: actions/upload-artifact@v4 |
76 | 73 | with: |
77 | | - name: cibw-wheels-test |
78 | | - path: ${{ env.WORKDIR }}/wheelhouse/* |
| 74 | + name: cibw-wheels-registry |
| 75 | + path: wheelhouse |
79 | 76 |
|
80 | 77 | - name: Upload wheel to EOS |
81 | 78 | env: |
|
0 commit comments