Skip to content

Commit

Permalink
remove Nim 1.2 and 1.4 support; test Nim 2.0 in CI (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec authored Jun 13, 2023
1 parent 9372f27 commit 99fcb34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
cpu: amd64
#- os: windows
#cpu: i386
branch: [version-1-2, version-1-4, version-1-6, devel]
branch: [version-1-6, version-2-0, devel]
include:
- target:
os: linux
Expand Down
5 changes: 2 additions & 3 deletions bearssl.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ description = "BearSSL wrapper"
license = "MIT or Apache License 2.0"
skipDirs = @["tests"]

requires "nim >= 1.2.0",
requires "nim >= 1.6.0",
"unittest2"

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 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"

Expand Down

0 comments on commit 99fcb34

Please sign in to comment.