Skip to content

Commit

Permalink
workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
nleroy917 committed May 15, 2024
1 parent 716f661 commit 014180b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,22 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
before-script-linux: yum -y install openssl-devel
before-script-linux: |
# Detect system architecture
ARCH=$(uname -m)
# Install packages based on architecture
if [ "$ARCH" == "x86_64" ]; then
echo "Detected architecture: x86_64"
sudo yum -y install openssl-devel
elif [ "$ARCH" == "aarch64" ]; then
echo "Detected architecture: ARM/aarch64"
sudo apt-get update
sudo apt-get install -y libssl-dev
else
echo "Unsupported architecture: $ARCH"
exit 1
fi
working-directory: ./bindings
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
Expand Down

0 comments on commit 014180b

Please sign in to comment.