mirror of
https://github.com/oxen-io/oxen-pyoxenmq.git
synced 2023-12-13 20:50:34 +01:00
Hacking around for macos
Build local oxenmq Install everything into a local prefix
This commit is contained in:
parent
996370228c
commit
97238b04ba
1 changed files with 12 additions and 2 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue