From 474477a1ca706e67360f5781a5252fe66df36ef7 Mon Sep 17 00:00:00 2001 From: Marek Fedorovic Date: Fri, 29 Sep 2023 14:59:56 +1000 Subject: [PATCH] fix: Fix openssl dependencies --- .github/workflows/npm.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 0a27da75..4819df47 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -24,7 +24,14 @@ jobs: target: aarch64-apple-darwin jsPackageHome: packages/cohort_sdk_js finalPackageName: packages/cohort_sdk_js/cohort_sdk_js.darwin-arm64.node - customiseHostCommand: echo 'No customizations are needed' + customiseHostCommand: |- + touch ~/.cargo/config + cat <> ~/.cargo/config + [target.aarch64-apple-darwin] + rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"] + EOT + echo "~/.cargo/config" + cat ~/.cargo/config buildCommand: npm run build -- --target aarch64-apple-darwin # - host: windows-latest