mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-02-16 20:13:23 +00:00
chore: ci fix
This commit is contained in:
parent
8616504cb9
commit
3b1fbad0af
@ -140,7 +140,10 @@ in stdenv.mkDerivation {
|
||||
|
||||
buildPhase = ''
|
||||
export NIMBLE_DIR="$(pwd)/vendor/.nimble"
|
||||
|
||||
'' + lib.optionalString isAndroidBuild ''
|
||||
# Add NDK toolchain to PATH so Nim can find clang for Android cross-compilation
|
||||
export PATH="$(echo $ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/*/bin):$PATH"
|
||||
'' + ''
|
||||
${lib.concatMapStringsSep "\n" buildCommandForTarget targets}
|
||||
'';
|
||||
|
||||
|
||||
11
sds.nimble
11
sds.nimble
@ -48,8 +48,15 @@ proc getArch(): string =
|
||||
|
||||
# Tasks
|
||||
task test, "Run the test suite":
|
||||
exec "nim c -r tests/test_bloom.nim"
|
||||
exec "nim c -r tests/test_reliability.nim"
|
||||
var extraFlags = ""
|
||||
when defined(macosx):
|
||||
let arch = getArch()
|
||||
if arch == "arm64":
|
||||
extraFlags = "--cpu:arm64 "
|
||||
else:
|
||||
extraFlags = "--cpu:amd64 "
|
||||
exec "nim c -r " & extraFlags & "tests/test_bloom.nim"
|
||||
exec "nim c -r " & extraFlags & "tests/test_reliability.nim"
|
||||
|
||||
task libsdsDynamicWindows, "Generate bindings":
|
||||
let outLibNameAndExt = "libsds.dll"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user