Skip to content

Commit

Permalink
trying within the maturin action
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekziade committed Oct 30, 2023
1 parent 2177e7f commit d55b5fe
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,18 @@ jobs:
uses: PyO3/maturin-action@v1
with:
before-script-linux: |
apt-get update -y
apt-get install -y libssl-dev openssl pkg-config
# If we're running on rhel centos, install needed packages.
if command -v yum &> /dev/null; then
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
# If we're running on i686 we need to symlink libatomic
# in order to build openssl with -latomic flag.
if [[ ! -d "/usr/lib64" ]]; then
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
fi
else
# If we're running on debian-based system.
apt update -y && apt-get install -y libssl-dev openssl pkg-config
rust-toolchain: nightly-2023-10-24
target: ${{ matrix.target }}
manylinux: auto
Expand Down

0 comments on commit d55b5fe

Please sign in to comment.