Hacking around for macos

Build local oxenmq

Install everything into a local prefix
This commit is contained in:
Jason Rhinelander 2021-10-22 18:33:35 -03:00
parent 996370228c
commit 97238b04ba

View file

@ -72,8 +72,18 @@ local mac_builder(name,
environment: { SSH_KEY: { from_secret: 'SSH_KEY' } }, environment: { SSH_KEY: { from_secret: 'SSH_KEY' } },
commands: [ commands: [
'echo "Building on ${DRONE_STAGE_MACHINE}"', 'echo "Building on ${DRONE_STAGE_MACHINE}"',
'python3 -mpip install . -v', 'mkdir prefix',
'python3 -mpytest -v --color=yes', 'git clone https://github.com/oxen-io/oxen-mq.git',
'cd oxen-mq',
'git submodule update --init --recursive --depth=1',
'mkdir build && cd build',
'cmake .. -DOXENMQ_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=../../prefix -G Ninja',
'ninja install -j' + jobs,
'cd ../..',
'LDFLAGS="-L$$PWD/prefix/lib -L/opt/local/lib" ' +
'CFLAGS="-Wextra -Werror -fcolor-diagnostics -I$$PWD/prefix/include -I/opt/local/include" ' +
'python3 -mpip install . -v --prefix=./prefix',
'DYLD_LIBRARY_PATH=$$PWD/prefix/lib PYTHONPATH=$$(ls -1d $$PWD/prefix/lib/python3*/site-packages) python3 -mpytest -v --color=yes',
] + extra_cmds, ] + extra_cmds,
}, },
], ],