diff --git a/.github/workflows/openssl.yml b/.github/workflows/openssl.yml index 50aea38d2139..5449f39963ac 100644 --- a/.github/workflows/openssl.yml +++ b/.github/workflows/openssl.yml @@ -37,8 +37,18 @@ jobs: - name: Uninstall openssl and conflicts run: apk del openssl-dev openssl-libs-static libxml2-static - name: Install ${{ matrix.pkg }} - run: apk add "${{ matrix.pkg }}" --repository=${{ matrix.repository }} - - name: Print LibSSL version - run: bin/crystal eval 'require "openssl"; p! LibSSL::OPENSSL_VERSION, LibSSL::LIBRESSL_VERSION' + # `apk add` may exit with a failure status due to some file incompatibilities, + # but still install all the necessary parts for our purposes. So we ignore failure. + # Reason: ERROR: libressl2.7-libcrypto-2.7.5-r0: trying to overwrite etc/ssl/openssl.cnf owned by libcrypto3-3.3.2-r0. + run: apk add "${{ matrix.pkg }}" --repository=${{ matrix.repository }} || true + - name: Check LibSSL version + run: | + bin/crystal eval <