From 7c01b0a4c33f8fd589c7d4cca112dc846d56cfda Mon Sep 17 00:00:00 2001 From: Marek Fedorovic Date: Fri, 29 Sep 2023 10:45:04 +1000 Subject: [PATCH] fix: Fix openssl dependencies --- .github/workflows/npm.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 368375fc..4bbf6399 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -25,13 +25,17 @@ jobs: jsPackageHome: packages/cohort_sdk_js finalPackageName: packages/cohort_sdk_js/cohort_sdk_js.darwin-arm64.node customiseHostCommand: |- + set -a find $(brew --prefix) -name "libcrypto.*" echo "" echo "find /usr/local -name "libsasl2.*"" find /usr/local -name "libsasl2.*" - brew install FiloSottile/musl-cross/musl-cross --with-aarch64 + echo "After search for libsasl2" brew install cyrus-sasl - ls -lah /usr/local/lib/ + ls -lah /usr/local/opt/ + echo 'export PATH="/usr/local/opt/cyrus-sasl/sbin:$PATH"' >> /Users/runner/.bash_profile + export LDFLAGS="-L/usr/local/opt/cyrus-sasl/lib" + export CPPFLAGS="-I/usr/local/opt/cyrus-sasl/include" buildCommand: npm run build -- --target aarch64-apple-darwin # - host: windows-latest