Skip to content

Commit

Permalink
different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
iameli committed Dec 11, 2023
1 parent f96070b commit 2ea765a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def binaries_pipeline(context, platform):
) or context.build.commit

steps = []
crypto_library = ""

if platform["os"] == "linux":
steps.append({
Expand All @@ -187,20 +188,16 @@ def binaries_pipeline(context, platform):
})

if platform["os"] == "darwin":
steps.append({
"name": "libraries",
"commands": [
'cd /Users/ddvtech && sudo -i -u ddvtech brew install nss',
],
})
# difficult to get the other options compiling on darwin at the moment
crypto_library = " -D SRTP_CRYPTO_LIBRARY=mbedtls "

steps.extend([
{
"name": "binaries",
"commands": [
'export CI_PATH="$(realpath ..)"',
"echo {} | tee BUILD_VERSION".format(version),
"meson setup -DLOAD_BALANCE=true -DNORIST=true -DNORIST=true -Dprefix=$CI_PATH --default-library static build",
"meson setup -DLOAD_BALANCE=true -DNORIST=true -DNORIST=true -Dprefix=$CI_PATH --default-library static build " + crypto_library,
"cd build/",
"ninja && ninja install",
],
Expand Down

0 comments on commit 2ea765a

Please sign in to comment.