diff --git a/.github/workflows/build_wheels.yaml b/.github/workflows/build_wheels.yaml index 2471310..f53f666 100644 --- a/.github/workflows/build_wheels.yaml +++ b/.github/workflows/build_wheels.yaml @@ -27,19 +27,9 @@ jobs: 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 + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: libssl-dev openssl pkg-config - name: Build wheels uses: PyO3/maturin-action@v1 with: @@ -72,19 +62,9 @@ jobs: 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 + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: libssl-dev openssl pkg-config - name: Build wheels uses: PyO3/maturin-action@v1 with: