From 9c8d084ea0b947fcb53491378a4a6bc64669078f Mon Sep 17 00:00:00 2001 From: Scott Lyons Date: Thu, 15 Aug 2024 09:11:34 -0700 Subject: [PATCH] ci(ci_yaml): fixing build for linux targets --- .github/workflows/CI.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 3a1c58a..1938671 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -51,6 +51,20 @@ jobs: args: -F python --release --out dist --find-interpreter -m szurubooru-client/Cargo.toml sccache: 'true' 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 uses: actions/upload-artifact@v4 with: @@ -113,7 +127,7 @@ jobs: uses: PyO3/maturin-action@v1 with: 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' - name: Upload wheels uses: actions/upload-artifact@v4