fix(ci): add --threads:on to all nim c commands
Commit 6aaabb5 added std/locks usage in vector/engine.nim (HNSW thread-safety).
std/locks requires --threads:on. Local builds worked because /etc/nim/nim.cfg
had threads:on, but GitHub Actions runners (setup-nim-action) compile without
threads by default, causing the test job to fail silently at runtime.
Also updated baradadb.nimble tasks for consistency.
Fixes GitHub Actions CI failure on test / clients-ci workflows.
This commit is contained in:
@@ -24,10 +24,10 @@ jobs:
|
||||
run: nimble install --depsOnly -y
|
||||
|
||||
- name: Run tests
|
||||
run: nim c -d:ssl --path:src -r tests/test_all.nim
|
||||
run: nim c -d:ssl --threads:on --path:src -r tests/test_all.nim
|
||||
|
||||
- name: Compile benchmarks
|
||||
run: nim c -d:release benchmarks/bench_all.nim
|
||||
run: nim c -d:release --threads:on benchmarks/bench_all.nim
|
||||
|
||||
- name: Compile stress test
|
||||
run: nim c -d:ssl --threads:on --path:src tests/stress_test.nim
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
|
||||
- name: Check for unused declarations and imports
|
||||
run: |
|
||||
nim c -d:ssl --path:src tests/test_all.nim 2>&1 | tee build.log || true
|
||||
nim c -d:ssl --threads:on --path:src tests/test_all.nim 2>&1 | tee build.log || true
|
||||
echo "--- Checking for XDeclaredButNotUsed hints ---"
|
||||
grep -E "XDeclaredButNotUsed|UnusedImport" build.log | while read -r line; do
|
||||
echo "::warning::$line"
|
||||
|
||||
Reference in New Issue
Block a user