- cd .. after the build, before running extra_cmds, because the scripts
  we invoke expect to be in the root, not in the build dir (and it's
  dirtier for the build function to not undo the `cd build` that it
  runs).
- fix unclosed parenthesis in mac static lib checker
pull/2023/head
Jason Rhinelander 2 years ago
parent 86c3b2f4ae
commit 0e09539b61

@ -83,8 +83,9 @@ local debian_pipeline(name,
cmake_extra + cmake_extra +
ci_dep_mirror(local_mirror), ci_dep_mirror(local_mirror),
'VERBOSE=1 make -j' + jobs, 'VERBOSE=1 make -j' + jobs,
'cd ..',
] ]
+ (if tests then ['../contrib/ci/drone-gdb.sh ./test/testAll --use-colour yes'] else []) + (if tests then ['./contrib/ci/drone-gdb.sh ./build/test/testAll --use-colour yes'] else [])
+ extra_cmds, + extra_cmds,
}, },
], ],
@ -295,6 +296,7 @@ local mac_builder(name,
// disk image. Most likely the GUI is required because if you lose sight of how pretty the // disk image. Most likely the GUI is required because if you lose sight of how pretty the
// surface of macOS is you might see how ugly the insides are. // surface of macOS is you might see how ugly the insides are.
'ninja -j' + jobs + ' assemble_gui', 'ninja -j' + jobs + ' assemble_gui',
'cd ..',
] + extra_cmds, ] + extra_cmds,
}, },
], ],
@ -394,8 +396,8 @@ local docs_pipeline(name, image, extra_cmds=[], allow_fail=false) = {
'-DCMAKE_C_FLAGS="-march=x86-64 -mtune=haswell" ' + '-DCMAKE_C_FLAGS="-march=x86-64 -mtune=haswell" ' +
'-DNATIVE_BUILD=OFF -DWITH_SYSTEMD=OFF -DWITH_BOOTSTRAP=OFF -DBUILD_LIBLOKINET=OFF', '-DNATIVE_BUILD=OFF -DWITH_SYSTEMD=OFF -DWITH_BOOTSTRAP=OFF -DBUILD_LIBLOKINET=OFF',
extra_cmds=[ extra_cmds=[
'../contrib/ci/drone-check-static-libs.sh', './contrib/ci/drone-check-static-libs.sh',
'../contrib/ci/drone-static-upload.sh', './contrib/ci/drone-static-upload.sh',
]), ]),
// Static armhf build (gets uploaded) // Static armhf build (gets uploaded)
debian_pipeline('Static (buster armhf)', debian_pipeline('Static (buster armhf)',
@ -406,8 +408,8 @@ local docs_pipeline(name, image, extra_cmds=[], allow_fail=false) = {
'-DCMAKE_CXX_FLAGS="-march=armv7-a+fp -Wno-psabi" -DCMAKE_C_FLAGS="-march=armv7-a+fp" ' + '-DCMAKE_CXX_FLAGS="-march=armv7-a+fp -Wno-psabi" -DCMAKE_C_FLAGS="-march=armv7-a+fp" ' +
'-DNATIVE_BUILD=OFF -DWITH_SYSTEMD=OFF -DWITH_BOOTSTRAP=OFF', '-DNATIVE_BUILD=OFF -DWITH_SYSTEMD=OFF -DWITH_BOOTSTRAP=OFF',
extra_cmds=[ extra_cmds=[
'../contrib/ci/drone-check-static-libs.sh', './contrib/ci/drone-check-static-libs.sh',
'UPLOAD_OS=linux-armhf ../contrib/ci/drone-static-upload.sh', 'UPLOAD_OS=linux-armhf ./contrib/ci/drone-static-upload.sh',
], ],
jobs=4), jobs=4),
@ -425,8 +427,8 @@ local docs_pipeline(name, image, extra_cmds=[], allow_fail=false) = {
// Macos builds: // Macos builds:
mac_builder('macOS (Release)', extra_cmds=[ mac_builder('macOS (Release)', extra_cmds=[
'../contrib/ci/drone-check-static-libs.sh', './contrib/ci/drone-check-static-libs.sh',
'../contrib/ci/drone-static-upload.sh', './contrib/ci/drone-static-upload.sh',
]), ]),
mac_builder('macOS (Debug)', build_type='Debug'), mac_builder('macOS (Debug)', build_type='Debug'),
] ]

@ -8,7 +8,7 @@ set -o errexit
bad= bad=
if [ "$DRONE_STAGE_OS" == "darwin" ]; then if [ "$DRONE_STAGE_OS" == "darwin" ]; then
if otool -L llarp/apple/org.lokinet.network-extension.systemextension/Contents/MacOS/org.lokinet.network-extension | \ if otool -L llarp/apple/org.lokinet.network-extension.systemextension/Contents/MacOS/org.lokinet.network-extension | \
grep -Ev '^llarp/apple:|^\t(/usr/lib/lib(System\.|c\+\+|objc)|/System/Library/Frameworks/(CoreFoundation|NetworkExtension|Foundation|Network)\.framework'; then grep -Ev '^llarp/apple:|^\t(/usr/lib/lib(System\.|c\+\+|objc))|/System/Library/Frameworks/(CoreFoundation|NetworkExtension|Foundation|Network)\.framework'; then
bad=1 bad=1
fi fi
elif [ "$DRONE_STAGE_OS" == "linux" ]; then elif [ "$DRONE_STAGE_OS" == "linux" ]; then

@ -55,8 +55,8 @@ elif [ -e build-mac ]; then
mv build-mac/Lokinet*/ "$base" mv build-mac/Lokinet*/ "$base"
tar cJvf "$archive" "$base" tar cJvf "$archive" "$base"
else else
cp -av daemon/lokinet daemon/lokinet-vpn "$base" cp -av build/daemon/lokinet{,-vpn} "$base"
cp -av ../contrib/bootstrap/mainnet.signed "$base/bootstrap.signed" cp -av contrib/bootstrap/mainnet.signed "$base/bootstrap.signed"
# tar dat shiz up yo # tar dat shiz up yo
archive="$base.tar.xz" archive="$base.tar.xz"
tar cJvf "$archive" "$base" tar cJvf "$archive" "$base"

Loading…
Cancel
Save