Disable libbacktrace enabled test on X86 platforms. (#523)

* Disable libbacktrace enabled test on X86 platforms.

* Fix mistype.

* Use macos-12 workers from now.
This commit is contained in:
Eugene Kabanov 2024-03-19 18:28:52 +02:00 committed by GitHub
parent 47cc17719f
commit d4f1487b0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 9 deletions

View File

@ -34,7 +34,7 @@ jobs:
shell: bash
- target:
os: macos
builder: macos-11
builder: macos-12
shell: bash
- target:
os: windows

View File

@ -20,6 +20,7 @@ let nimc = getEnv("NIMC", "nim") # Which nim compiler to use
let lang = getEnv("NIMLANG", "c") # Which backend (c/cpp/js)
let flags = getEnv("NIMFLAGS", "") # Extra flags for the compiler
let verbose = getEnv("V", "") notin ["", "0"]
let platform = getEnv("PLATFORM", "")
let testArguments =
when defined(windows):
[
@ -60,15 +61,16 @@ task test, "Run all tests":
run args, "tests/testall"
task test_libbacktrace, "test with libbacktrace":
let allArgs = @[
"-d:release --debugger:native -d:chronosStackTrace -d:nimStackTraceOverride --import:libbacktrace",
]
if platform != "x86":
let allArgs = @[
"-d:release --debugger:native -d:chronosStackTrace -d:nimStackTraceOverride --import:libbacktrace",
]
for args in allArgs:
if (NimMajor, NimMinor) > (1, 6):
# First run tests with `refc` memory manager.
run args & " --mm:refc", "tests/testall"
run args, "tests/testall"
for args in allArgs:
if (NimMajor, NimMinor) > (1, 6):
# First run tests with `refc` memory manager.
run args & " --mm:refc", "tests/testall"
run args, "tests/testall"
task docs, "Generate API documentation":
exec "mdbook build docs"