Skip to content

Commit ef03907

Browse files
authored
Merge pull request #43 from atomic-data-sciences/enhancement/rheed_streamer
More openssl fixes
2 parents 23dd0df + 2839da4 commit ef03907

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ jobs:
6161
CIBW_ARCHS_WINDOWS: "AMD64"
6262
# Ensure Rust is present inside manylinux Docker images
6363
CIBW_BEFORE_ALL_LINUX: |
64+
set -euo pipefail
65+
if command -v dnf >/dev/null 2>&1; then
66+
dnf -y update || true
67+
dnf -y install openssl-devel pkgconfig perl make gcc
68+
else
69+
yum -y update || true
70+
yum -y install openssl-devel pkgconfig perl make gcc
71+
fi
72+
73+
# Install Rust inside the manylinux container
6474
curl https://sh.rustup.rs -sSf | sh -s -- -y
6575
CIBW_ENVIRONMENT_LINUX: 'PATH="$HOME/.cargo/bin:$PATH"'
6676
CIBW_ENVIRONMENT_MACOS: >
@@ -73,8 +83,10 @@ jobs:
7383
- name: Upload built wheels (artifact)
7484
uses: actions/upload-artifact@v4
7585
with:
76-
name: wheels
86+
# make the name unique per matrix entry
87+
name: wheels-${{ matrix.os }}
7788
path: dist/*.whl
89+
if-no-files-found: error
7890

7991
sdist:
8092
name: Build sdist
@@ -102,15 +114,20 @@ jobs:
102114
path: dist/*.tar.gz
103115

104116
publish:
105-
name: Publish to PyPI
106117
needs: [build_wheels, sdist]
107118
runs-on: ubuntu-latest
108119
steps:
109120
- name: Download wheels
110121
uses: actions/download-artifact@v4
111122
with:
112-
name: wheels
113-
path: dist
123+
pattern: wheels-*
124+
merge-multiple: true # puts everything under ./
125+
126+
- name: Move wheels into dist/
127+
run: |
128+
mkdir -p dist
129+
shopt -s nullglob
130+
mv ./*/*.whl dist/ || true
114131
115132
- name: Download sdist
116133
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)