ci(ci_yaml): fixing build for linux targets

This commit is contained in:
Scott Lyons 2024-08-15 09:11:34 -07:00
commit 9c8d084ea0

View file

@ -51,6 +51,20 @@ jobs:
args: -F python --release --out dist --find-interpreter -m szurubooru-client/Cargo.toml args: -F python --release --out dist --find-interpreter -m szurubooru-client/Cargo.toml
sccache: 'true' sccache: 'true'
manylinux: auto manylinux: auto
before-script-linux: |
# 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
fi
- name: Upload wheels - name: Upload wheels
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@ -113,7 +127,7 @@ jobs:
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
with: with:
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
args: -F --release --out dist --find-interpreter -m szurubooru-client/Cargo.toml args: -F python --release --out dist --find-interpreter -m szurubooru-client/Cargo.toml
sccache: 'true' sccache: 'true'
- name: Upload wheels - name: Upload wheels
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4