File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -28,22 +28,16 @@ jobs:
28
28
uses : PyO3/maturin-action@v1
29
29
with :
30
30
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"
40
34
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 "
43
37
apt-get update
44
38
apt-get install -y libssl-dev
45
39
else
46
- echo "Unsupported architecture: $ARCH "
40
+ echo "No supported package manager found (yum or apt-get) "
47
41
exit 1
48
42
fi
49
43
working-directory : ./bindings
You can’t perform that action at this time.
0 commit comments