chore: ci fix

This commit is contained in:
darshankabariya 2026-02-10 01:32:49 +05:30
parent 8616504cb9
commit 3b1fbad0af
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22
2 changed files with 13 additions and 3 deletions

View File

@ -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}
'';

View File

@ -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"