diff --git a/.github/workflows/build_wheels.yaml b/.github/workflows/build_wheels.yaml index b2b9d8a..2471310 100644 --- a/.github/workflows/build_wheels.yaml +++ b/.github/workflows/build_wheels.yaml @@ -26,6 +26,20 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.x + - name: Install dependencies + run: | + # 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: Build wheels uses: PyO3/maturin-action@v1 with: @@ -33,6 +47,10 @@ jobs: args: --release --out dist --find-interpreter sccache: "true" manylinux: auto + - name: Install wheel + run: | + pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies + python -c "import pycoverm" - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -53,6 +71,20 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.x + - name: Install dependencies + run: | + # 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: Build wheels uses: PyO3/maturin-action@v1 with: @@ -60,6 +92,10 @@ jobs: args: --release --out dist --find-interpreter sccache: "true" manylinux: musllinux_1_2 + - name: Install wheel + run: | + pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies + python -c "import pycoverm" - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -86,6 +122,10 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist --find-interpreter sccache: "true" + - name: Install wheel + run: | + pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies + python -c "import pycoverm" - name: Upload wheels uses: actions/upload-artifact@v4 with: