From a2cdc7ce31164cd0d57d4465dbdd6fd0d26e6cbe Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 28 Jul 2023 08:44:34 -0400 Subject: [PATCH] actions: fix bash condition That died quicker than I thought it would, man Bash is picky... --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 26829b87..1621fde7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -259,7 +259,7 @@ jobs: git checkout "${LATEST_STABLE_TAG}" export COMPILED_OPENSSL_VERSION=${LATEST_STABLE_TAG:8} # Trim the openssl- prefix echo "COMPILED_OPENSSL_VERSION=${COMPILED_OPENSSL_VERSION}" >> $GITHUB_ENV - if [[ "${RUNNER_OS}" == "macOS" ] && [ "$arch" == "universal2"]]; then + if [[ "${RUNNER_OS}" == "macOS" ] && [ "$arch" == "universal2" ]]; then for openssl_arch in $openssl_archs; do ssldir="${OPENSSL_SOURCE_PATH}-${openssl_arch}" mkdir -v "${ssldir}" @@ -299,7 +299,7 @@ jobs: - name: Install OpenSSL if: matrix.goal == 'build' && steps.cache-python-ssl.outputs.cache-hit != 'true' run: | - if [[ "${RUNNER_OS}" == "macOS" ] && [ "$arch" == "universal2"]]; then + if [[ "${RUNNER_OS}" == "macOS" ] && [ "$arch" == "universal2" ]]; then for openssl_arch in $openssl_archs; do cd "${GITHUB_WORKSPACE}/src/openssl-${openssl_arch}" # install_sw saves us ages processing man pages :-) @@ -351,7 +351,7 @@ jobs: if: matrix.goal == 'build' && runner.os != 'Windows' && steps.cache-python-ssl.outputs.cache-hit != 'true' run: | cd "${PYTHON_SOURCE_PATH}" - if [[ "${RUNNER_OS}" == "macOS" ] && [ "$arch" == "universal2"]]; then + if [[ "${RUNNER_OS}" == "macOS" ] && [ "$arch" == "universal2" ]]; then extra_args=( "--enable-universalsdk" "--with-universal-archs=universal2" ) else extra_args=( ) @@ -441,7 +441,7 @@ jobs: run: | echo "before anything..." "${PYTHON}" -m pip list - if [[ "${RUNNER_OS}" == "macOS" ] && [ "$arch" == "universal2"]]; then + if [[ "${RUNNER_OS}" == "macOS" ] && [ "$arch" == "universal2" ]]; then # cffi is a dep of cryptography and doesn't ship # a universal2 wheel so we must build one ourself :-/ export CFLAGS="-arch x86_64 -arch arm64"