switch CI to the supported versions of ubuntu and macos (#33)
* switch CI to the supported versions of ubuntu and macos See: - https://github.com/actions/runner-images/issues/6002 - https://github.com/actions/runner-images/issues/5583 * fix for `nnkArgList` style
This commit is contained in:
parent
49e2c52eb5
commit
682b9c6541
2 changed files with 12 additions and 3 deletions
|
|
@ -18,7 +18,16 @@ proc test(args, path: string) =
|
|||
# Compilation language is controlled by TEST_LANG
|
||||
let lang = getEnv("TEST_LANG", "c")
|
||||
|
||||
var common_args = "-r -f " & getEnv("NIMFLAGS") & " --hints:off --styleCheck:usages --styleCheck:error"
|
||||
# nnkArglist was changed to nnkArgList, so can't always use --styleCheck:error
|
||||
# https://github.com/nim-lang/Nim/pull/17529
|
||||
# https://github.com/nim-lang/Nim/pull/19822
|
||||
let styleCheckStyle =
|
||||
if (NimMajor, NimMinor) < (1, 6):
|
||||
"hint"
|
||||
else:
|
||||
"error"
|
||||
|
||||
var common_args = "-r -f " & getEnv("NIMFLAGS") & " --hints:off --styleCheck:usages --styleCheck:" & styleCheckStyle
|
||||
|
||||
if getEnv("NIMBUS_ENV_DIR") != "":
|
||||
common_args &= " --skipParentCfg"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue