From 3735500a60f08579201249b18529b0025aa7511d Mon Sep 17 00:00:00 2001 From: Christopher Rabotin Date: Fri, 29 Dec 2023 10:49:14 -0700 Subject: [PATCH] Remoe sccache --- .github/workflows/python.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 10bc5824..c87a2c14 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -36,10 +36,17 @@ jobs: with: target: ${{ matrix.target }} args: --release --out dist --find-interpreter - sccache: 'true' manylinux: auto working-directory: anise-py - before-script-linux: apt-get update -y && apt-get install -y libssl-dev openssl pkg-config + before-script-linux: | + # Source: https://github.com/sfackler/rust-openssl/issues/2036#issuecomment-1724324145 + # 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 + 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@v3