Skip to content

Commit 2b87d6c

Browse files
committed
lets try spinning, thats a good trick
1 parent 8d5f52e commit 2b87d6c

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,16 @@ jobs:
2828
uses: PyO3/maturin-action@v1
2929
with:
3030
before-script-linux: |
31-
# Detect system architecture
32-
ARCH=$(uname -m)
33-
34-
# Install packages based on architecture
35-
if [ "$ARCH" == "x86_64" ]; then
36-
echo "Detected architecture: x86_64"
37-
yum -y install openssl-devel
38-
elif [ "$ARCH" == "i686" ]; then
39-
echo "Detected architecture: x86"
31+
# Check for yum and use it if available, otherwise use apt-get
32+
if command -v yum &> /dev/null; then
33+
echo "Detected yum package manager"
4034
yum -y install openssl-devel
41-
elif [ "$ARCH" == "aarch64" ]; then
42-
echo "Detected architecture: ARM/aarch64"
35+
elif command -v apt-get &> /dev/null; then
36+
echo "Detected apt-get package manager"
4337
apt-get update
4438
apt-get install -y libssl-dev
4539
else
46-
echo "Unsupported architecture: $ARCH"
40+
echo "No supported package manager found (yum or apt-get)"
4741
exit 1
4842
fi
4943
working-directory: ./bindings

0 commit comments

Comments
 (0)