From c11ed56fbd00bb31d6ddd083c05b3881b8f3c0ca Mon Sep 17 00:00:00 2001 From: Takashi Kitao Date: Mon, 27 Nov 2023 22:27:32 +0900 Subject: [PATCH] Added environmental variables for OpenSSL --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef10239da9..b6b198e6e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -106,6 +106,10 @@ jobs: run: | sudo apt-get update sudo apt-get install -y libssl-dev + OPENSSL_LIB_DIR=$(dpkg -L libssl-dev | grep -m 1 '/lib' | xargs dirname) + OPENSSL_INCLUDE_DIR=$(dpkg -L libssl-dev | grep -m 1 '/include' | xargs dirname) + echo "OPENSSL_LIB_DIR=$OPENSSL_LIB_DIR" >> $GITHUB_ENV + echo "OPENSSL_INCLUDE_DIR=$OPENSSL_INCLUDE_DIR" >> $GITHUB_ENV - name: Install OpenSSL for i686 if: matrix.target == 'i686-unknown-linux-gnu' @@ -113,6 +117,10 @@ jobs: sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install -y libssl-dev:i386 + OPENSSL_LIB_DIR=$(dpkg -L libssl-dev:i386 | grep -m 1 '/lib' | xargs dirname) + OPENSSL_INCLUDE_DIR=$(dpkg -L libssl-dev:i386 | grep -m 1 '/include' | xargs dirname) + echo "I686_UNKNOWN_LINUX_GNU_OPENSSL_OPENSSL_LIB_DIR=$OPENSSL_LIB_DIR" >> $GITHUB_ENV + echo "I686_UNKNOWN_LINUX_GNU_OPENSSL_OPENSSL_INCLUDE_DIR=$OPENSSL_INCLUDE_DIR" >> $GITHUB_ENV - name: Install OpenSSL for aarch64 if: matrix.target == 'aarch64-unknown-linux-gnu' @@ -120,6 +128,10 @@ jobs: sudo dpkg --add-architecture arm64 sudo apt-get update sudo apt-get install -y libssl-dev:arm64 + OPENSSL_LIB_DIR=$(dpkg -L libssl-dev:arm64 | grep -m 1 '/lib' | xargs dirname) + OPENSSL_INCLUDE_DIR=$(dpkg -L libssl-dev:arm64 | grep -m 1 '/include' | xargs dirname) + echo "AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR=$OPENSSL_LIB_DIR" >> $GITHUB_ENV + echo "AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR=$OPENSSL_INCLUDE_DIR" >> $GITHUB_ENV - name: Install OpenSSL for armv7 if: matrix.target == 'armv7-unknown-linux-gnueabihf' @@ -127,6 +139,10 @@ jobs: sudo dpkg --add-architecture armhf sudo apt-get update sudo apt-get install -y libssl-dev:armhf + OPENSSL_LIB_DIR=$(dpkg -L libssl-dev:armhf | grep -m 1 '/lib' | xargs dirname) + OPENSSL_INCLUDE_DIR=$(dpkg -L libssl-dev:armhf | grep -m 1 '/include' | xargs dirname) + echo "ARMV7_UNKNOWN_LINUX_GNUEABIHF_OPENSSL_LIB_DIR=$OPENSSL_LIB_DIR" >> $GITHUB_ENV + echo "ARMV7_UNKNOWN_LINUX_GNUEABIHF_OPENSSL_INCLUDE_DIR=$OPENSSL_INCLUDE_DIR" >> $GITHUB_ENV - name: Build and install SDL2 run: |