From 682b9c6541bbb82b09e415fbe9ef944570b62f76 Mon Sep 17 00:00:00 2001 From: Miran Date: Fri, 26 Aug 2022 12:43:06 +0200 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 4 ++-- faststreams.nimble | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71e8cfc..a3c0b84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,11 +26,11 @@ jobs: include: - target: os: linux - builder: ubuntu-18.04 + builder: ubuntu-20.04 shell: bash - target: os: macos - builder: macos-10.15 + builder: macos-11 shell: bash - target: os: windows diff --git a/faststreams.nimble b/faststreams.nimble index c231d41..a6dbf0d 100644 --- a/faststreams.nimble +++ b/faststreams.nimble @@ -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"