Skip to content

Commit e376949

Browse files
committed
Fix download artifact
1 parent bf0b14c commit e376949

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.github/workflows/cibuildwheel-impl/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ runs:
1212
uses: pypa/[email protected]
1313
env:
1414
CIBW_BUILD: ${{ inputs.build-tag }}
15-
15+
1616
- name: Upload wheel
1717
uses: actions/upload-artifact@v4
1818
with:

.github/workflows/python_wheel_build.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ jobs:
3333

3434
- name: Download produced wheels
3535
uses: actions/download-artifact@v4
36+
with:
37+
merge-multiple: true
3638

37-
- name: Install Kerberos utilities
38-
run: sudo apt-get install -y krb5-user
39-
40-
- name: Install XRootD client
41-
run: sudo apt-get -y install xrootd-client
39+
- name: Install required system packages
40+
run: sudo apt-get install -y krb5-user xrootd-client
4241

4342
- name: Setup Python
4443
uses: actions/setup-python@v5
@@ -51,11 +50,9 @@ jobs:
5150
python -m pip install --user simple503
5251
simple503 wheelhouse
5352
54-
- name: Upload wheel registry to github
55-
uses: actions/upload-artifact@v4
56-
with:
57-
name: cibw-wheels-registry
58-
path: wheelhouse
53+
- name: Compute number of files to upload
54+
id: nfiles
55+
run: echo "NFILES=$(find wheelhouse -maxdepth 1 | wc -l)" >> "$GITHUB_OUTPUT"
5956

6057
- name: Upload wheels to EOS
6158
env:
@@ -64,6 +61,7 @@ jobs:
6461
EOS_PATH: /eos/project/r/root-eos/www/experimental-python-wheels
6562
EOS_ENDPOINT: root://eosproject-r.cern.ch
6663
KRB5CCNAME: /tmp/krb5cc
64+
NFILES: ${{ steps.nfiles.outputs.NFILES }}
6765
working-directory: ${{ env.WORKDIR }}
6866
run: |
6967
echo +++ Content
@@ -73,4 +71,4 @@ jobs:
7371
echo +++ Creating the token
7472
kinit -p ${{ secrets.KRB5USER }}@${{ secrets.KRB5REALM }} -kt ${KT_FILE_NAME}
7573
echo +++ Running the copy
76-
xrdcp --parallel 6 -rf wheelhouse/* ${EOS_ENDPOINT}/${EOS_PATH}/
74+
xrdcp --parallel ${NFILES} -rf wheelhouse/* ${EOS_ENDPOINT}/${EOS_PATH}/

0 commit comments

Comments
 (0)