From 422b6e1435d1a668f2a2bb1ac98ccfaedd0bafd5 Mon Sep 17 00:00:00 2001 From: tersec Date: Wed, 5 Jul 2023 13:13:50 +0000 Subject: [PATCH] remove Nim 1.2 and 1.4 support (#204) --- .github/workflows/ci.yml | 2 +- stew.nimble | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fbbd2bb..7d18013c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: cpu: amd64 #- os: windows #cpu: i386 - branch: [version-1-2, version-1-4, version-1-6, version-2-0, devel] + branch: [version-1-6, version-2-0, devel] include: - target: os: linux diff --git a/stew.nimble b/stew.nimble index 924de70a..6e0a356d 100644 --- a/stew.nimble +++ b/stew.nimble @@ -7,7 +7,7 @@ description = "Backports, standard library candidates and small utilities that license = "MIT or Apache License 2.0" skipDirs = @["tests"] -requires "nim >= 1.2.0", +requires "nim >= 1.6.0", "results", "unittest2" @@ -16,9 +16,8 @@ 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 styleCheckStyle = if (NimMajor, NimMinor) < (1, 6): "hint" else: "error" let cfg = - " --styleCheck:usages --styleCheck:" & styleCheckStyle & + " --styleCheck:usages --styleCheck:error" & (if verbose: "" else: " --verbosity:0 --hints:off") & " --skipParentCfg --skipUserCfg --outdir:build --nimcache:build/nimcache -f" @@ -36,4 +35,4 @@ task test, "Run all tests": "--threads:on -d:noIntrinsicsBitOpts -d:noIntrinsicsEndians"]: run args, "tests/all_tests" if (NimMajor, NimMinor) > (1, 6): - run args & " --mm:refc", "tests/all_tests" + run args & " --mm:refc", "tests/all_tests" \ No newline at end of file