ci(ci_yaml): fixing build for linux targets
This commit is contained in:
parent
ead0470c3e
commit
9c8d084ea0
1 changed files with 15 additions and 1 deletions
16
.github/workflows/CI.yaml
vendored
16
.github/workflows/CI.yaml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue