ci(debug): add debug step to inspect nimble state
This commit is contained in:
+12
-20
@@ -17,26 +17,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
nim-version: '2.2.10'
|
nim-version: '2.2.10'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Debug
|
||||||
run: nimble install --depsOnly -y
|
run: |
|
||||||
|
which nim
|
||||||
|
nim --version
|
||||||
|
which nimble
|
||||||
|
nimble --version
|
||||||
|
nimble list -i
|
||||||
|
ls ~/.nimble/pkgs2/ 2>/dev/null | head -n 20 || true
|
||||||
|
echo "---"
|
||||||
|
nimble install --depsOnly -y 2>&1 | tail -n 30
|
||||||
|
echo "---"
|
||||||
|
ls ~/.nimble/pkgs2/ 2>/dev/null | head -n 20 || true
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: nim c -d:ssl --path:src -r tests/test_all.nim
|
run: nim c -d:ssl --path:src -r tests/test_all.nim
|
||||||
|
|
||||||
- name: Compile benchmarks
|
|
||||||
run: nim c -d:release benchmarks/bench_all.nim
|
|
||||||
|
|
||||||
- name: Compile stress test
|
|
||||||
run: nim c -d:ssl --threads:on --path:src tests/stress_test.nim
|
|
||||||
|
|
||||||
- name: Run stress test
|
|
||||||
run: ./tests/stress_test
|
|
||||||
|
|
||||||
- name: Check for unused declarations and imports
|
|
||||||
run: |
|
|
||||||
nim c -d:ssl --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"
|
|
||||||
done
|
|
||||||
echo "--- Done ---"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user